53 instantiations of AbsolutePath
Microsoft.Build (3)
Microsoft.Build.Engine.UnitTests (4)
Microsoft.Build.Framework (13)
Microsoft.Build.Framework.UnitTests (29)
AbsolutePath_Tests.cs (29)
18return new AbsolutePath(baseDirectory, ignoreRootedCheck: false);
26var absolutePath = new AbsolutePath(path);
32Should.Throw<ArgumentException>(() => new AbsolutePath(path, ignoreRootedCheck: false),
41var absolutePath = new AbsolutePath(absolutePathString);
52Should.Throw<ArgumentNullException>(() => new AbsolutePath(path!));
61var exception = Should.Throw<ArgumentException>(() => new AbsolutePath(path));
71Should.Throw<ArgumentNullException>(() => new AbsolutePath(path!, basePath));
81var exception = Should.Throw<ArgumentException>(() => new AbsolutePath(path, basePath));
93var basePath = new AbsolutePath(baseDirectory);
94var absolutePath = new AbsolutePath(relativePath, basePath);
106var path1 = new AbsolutePath(testPath);
107var path2 = new AbsolutePath(testPath);
108var differentPath = new AbsolutePath(Path.Combine(testPath, "different"));
120var path1 = new AbsolutePath(testPath);
121var differentPath = new AbsolutePath(Path.Combine(testPath, "different"));
133var path1 = new AbsolutePath(testPath);
134var path2 = new AbsolutePath(testPath);
145var path1 = new AbsolutePath(testPath);
146object path2 = new AbsolutePath(testPath);
158var lowerPath = new AbsolutePath("C:\\foo\\bar", ignoreRootedCheck: true);
159var upperPath = new AbsolutePath("C:\\FOO\\BAR", ignoreRootedCheck: true);
170var lowerPath = new AbsolutePath("/foo/bar");
171var upperPath = new AbsolutePath("/FOO/BAR");
184Should.Throw<ArgumentException>(() => new AbsolutePath(path, ignoreRootedCheck: ignoreRootedCheck));
188var absolutePath = new AbsolutePath(path, ignoreRootedCheck: ignoreRootedCheck);
241var absolutePath = new AbsolutePath(null!, null!, ignoreRootedCheck: true);
273var absolutePath = new AbsolutePath(inputPath, ignoreRootedCheck: true);
291var absolutePath = new AbsolutePath(invalidPath, ignoreRootedCheck: true);
308var exception = Should.Throw<ArgumentException>(() => new AbsolutePath("relative/path"));
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.Utilities.Core (1)
139 references to AbsolutePath
Microsoft.Build (2)
Microsoft.Build.Engine.UnitTests (5)
Microsoft.Build.Framework (41)
Microsoft.Build.Framework.UnitTests (24)
AbsolutePath_Tests.cs (24)
15private static AbsolutePath GetTestBasePath()
26var absolutePath = new AbsolutePath(path);
41var absolutePath = new AbsolutePath(absolutePathString);
69var basePath = GetTestBasePath();
79var basePath = GetTestBasePath();
93var basePath = new AbsolutePath(baseDirectory);
94var absolutePath = new AbsolutePath(relativePath, basePath);
106var path1 = new AbsolutePath(testPath);
107var path2 = new AbsolutePath(testPath);
108var differentPath = new AbsolutePath(Path.Combine(testPath, "different"));
120var path1 = new AbsolutePath(testPath);
121var differentPath = new AbsolutePath(Path.Combine(testPath, "different"));
133var path1 = new AbsolutePath(testPath);
134var path2 = new AbsolutePath(testPath);
145var path1 = new AbsolutePath(testPath);
158var lowerPath = new AbsolutePath("C:\\foo\\bar", ignoreRootedCheck: true);
159var upperPath = new AbsolutePath("C:\\FOO\\BAR", ignoreRootedCheck: true);
170var lowerPath = new AbsolutePath("/foo/bar");
171var upperPath = new AbsolutePath("/FOO/BAR");
188var absolutePath = new AbsolutePath(path, ignoreRootedCheck: ignoreRootedCheck);
241var absolutePath = new AbsolutePath(null!, null!, ignoreRootedCheck: true);
273var absolutePath = new AbsolutePath(inputPath, ignoreRootedCheck: true);
274var result = absolutePath.GetCanonicalForm();
291var absolutePath = new AbsolutePath(invalidPath, ignoreRootedCheck: true);
Microsoft.Build.Tasks.Core (63)
FileIO\WriteLinesToFile.cs (7)
75AbsolutePath filePath = FileUtilities.NormalizePath(TaskEnvironment.GetAbsolutePath(File.ItemSpec));
127private bool ExecuteNonTransactional(AbsolutePath filePath, string directoryPath, string contentsAsString, Encoding encoding)
155private bool ExecuteTransactional(AbsolutePath filePath, string directoryPath, string contentsAsString, Encoding encoding)
187private bool SaveAtomically(AbsolutePath filePath, string contentsAsString, Encoding encoding)
289private bool SaveAtomicallyAppend(AbsolutePath filePath, string directoryPath, string contentsAsString, Encoding encoding)
311private bool ShouldWriteFileForOverwrite(AbsolutePath filePath, string contentsAsString)
352private bool FilesAreIdentical(AbsolutePath filePath, string contentsAsString)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.Utilities.Core (3)