void () { var wsl = wslRule.getWsl(); assertEquals(WSLUtil.getUncPrefix() + wsl.getMsId() + "\\mnt\\cd", wsl.getWindowsPath("/mnt/cd")); assertEquals(WSLUtil.getUncPrefix() + wsl.getMsId()+ "\\mnt", wsl.getWindowsPath("/mnt")); assertEquals(WSLUtil.getUncPrefix() + wsl.getMsId(), wsl.getWindowsPath("")); assertEquals(WSLUtil.getUncPrefix() + wsl.getMsId() + "\\mnt\\test", wsl.getWindowsPath("/mnt//test")); assertEquals(WSLUtil.getUncPrefix() + wsl.getMsId() + "\\mnt\\1\\test", wsl.getWindowsPath("/mnt/1/test")); assertEquals("C:", wsl.getWindowsPath("/mnt/c")); assertEquals(WSLUtil.getUncPrefix() + wsl.getMsId() + "\\mnt\\", wsl.getWindowsPath("/mnt/")); assertEquals(WSLUtil.getUncPrefix() + wsl.getMsId() + "\\mnt", wsl.getWindowsPath("/mnt")); assertEquals(WSLUtil.getUncPrefix() + wsl.getMsId() + "\\", wsl.getWindowsPath("/")); assertEquals("X:\\", wsl.getWindowsPath("/mnt/x/")); assertEquals("C:", wsl.getWindowsPath("/mnt/C")); assertEquals("C:\\temp\\foo", wsl.getWindowsPath("/mnt/c/temp/foo")); assertEquals("C:\\temp\\KeepCase", wsl.getWindowsPath("/mnt/c/temp/KeepCase")); assertEquals("C:\\name with spaces\\another name with spaces", wsl.getWindowsPath("/mnt/c/name with spaces/another name with spaces")); //noinspection NonAsciiCharacters assertEquals("C:\\юникод", wsl.getWindowsPath("/mnt/c/юникод")); }