39 references to TestPath
Microsoft.CodeAnalysis.UnitTests (39)
FileUtilitiesTests.cs (39)
119TestPath(@"C:\abc\def.dll", @"Q:\baz\x.csx", baseDir, noSearchPaths, @"C:\abc\def.dll"); 120TestPath(@"C:\abc\\\\\def.dll", @"Q:\baz\x.csx", baseDir, noSearchPaths, @"C:\abc\\\\\def.dll"); 123TestPath(@"\abc\def.dll", @"Q:\baz\x.csx", baseDir, noSearchPaths, @"Q:\abc\def.dll"); 124TestPath(@"\abc\def.dll", null, baseDir, noSearchPaths, @"X:\abc\def.dll"); 125TestPath(@"\abc\def.dll", "goo.csx", null, noSearchPaths, null); 128TestPath(@"/abc\def.dll", null, @"\\x\y\z", noSearchPaths, @"\\x\y\abc\def.dll"); 129TestPath(@"/abc\def.dll", null, null, noSearchPaths, null); 130TestPath(@"/**/", null, baseDir, noSearchPaths, @"X:\**/"); 131TestPath(@"/a/z.txt", null, @"?:\*\<>", noSearchPaths, @"?:\a/z.txt"); 134TestPath(@"\abc\def.dll", @"\\mymachine\root\x.csx", baseDir, noSearchPaths, @"\\mymachine\root\abc\def.dll"); 135TestPath(@"\abc\def.dll", null, @"\\mymachine\root\x.csx", noSearchPaths, @"\\mymachine\root\abc\def.dll"); 136TestPath(@"\\abc\def\baz.dll", null, @"\\mymachine\root\x.csx", noSearchPaths, @"\\abc\def\baz.dll"); 139TestPath(@"\\", null, @"\\mymachine\root\x.csx", noSearchPaths, @"\\"); 140TestPath(@"\\goo", null, @"\\mymachine\root\x.csx", noSearchPaths, @"\\goo"); 147TestPath(@"./def.dll", @"Q:\abc\x.csx", baseDir, noSearchPaths, @"Q:\abc\./def.dll"); 148TestPath(@"./def.dll", @"Q:\abc\x.csx", baseDir, noSearchPaths, @"Q:\abc\./def.dll"); 149TestPath(@".", @"Q:\goo\x.csx", baseDir, noSearchPaths, @"Q:\goo"); 150TestPath(@"..", @"Q:\goo\x.csx", baseDir, noSearchPaths, @"Q:\goo\.."); // doesn't normalize 151TestPath(@".\", @"Q:\goo\x.csx", baseDir, noSearchPaths, @"Q:\goo\.\"); 152TestPath(@"..\", @"Q:\goo\x.csx", baseDir, noSearchPaths, @"Q:\goo\..\"); // doesn't normalize 155TestPath(@".\y.dll", @"x.csx", baseDir, noSearchPaths, @"X:\rootdir\dir\.\y.dll"); 156TestPath(@".\y.dll", @"goo\x.csx", baseDir, noSearchPaths, @"X:\rootdir\dir\goo\.\y.dll"); 157TestPath(@".\y.dll", @".\goo\x.csx", baseDir, noSearchPaths, @"X:\rootdir\dir\.\goo\.\y.dll"); 158TestPath(@".\y.dll", @"..\x.csx", baseDir, noSearchPaths, @"X:\rootdir\dir\..\.\y.dll"); // doesn't normalize 159TestPath(@".\\y.dll", @"..\x.csx", baseDir, noSearchPaths, @"X:\rootdir\dir\..\.\\y.dll"); // doesn't normalize 160TestPath(@".\/y.dll", @"..\x.csx", baseDir, noSearchPaths, @"X:\rootdir\dir\..\.\/y.dll"); // doesn't normalize 161TestPath(@"..\y.dll", @"..\x.csx", baseDir, noSearchPaths, @"X:\rootdir\dir\..\..\y.dll"); // doesn't normalize 164TestPath(@"y.dll", @"x.csx", baseDir, noSearchPaths, @"X:\rootdir\dir\y.dll"); 165TestPath(@"y.dll", @"x.csx", baseDir, new[] { @"Z:\" }, @"X:\rootdir\dir\y.dll"); 168TestPath(@"C:y.dll", @"x.csx", baseDir, noSearchPaths, null); 169TestPath("C:\tools\\", null, @"d:\z", noSearchPaths, null); 174TestPath(@"/c:x.dll", null, @"d:\", noSearchPaths, @"d:\c:x.dll"); 177TestPath(@"/:x.dll", null, @"d:\", noSearchPaths, @"d:\:x.dll"); 180TestPath(@"//:x.dll", null, @"d:\", noSearchPaths, @"//:x.dll"); 183TestPath(@"c::x.dll", null, @"d:\", noSearchPaths, null); 186TestPath(@".\:x.dll", null, @"d:\z", noSearchPaths, @"d:\z\.\:x.dll"); 189TestPath(@"..\:x.dll", null, @"d:\z", noSearchPaths, @"d:\z\..\:x.dll"); 193TestPath(@"", @"c:\temp", @"d:\z", noSearchPaths, null); 196TestPath(" \t\r\n ", @"c:\temp", @"d:\z", noSearchPaths, null);