14 references to EnsureTrailingSlash
Microsoft.Build (6)
Evaluation\Expander.cs (1)
1633
value = FileUtilities.
EnsureTrailingSlash
(Path.GetDirectoryName(elementLocation.File));
Evaluation\IntrinsicFunctions.cs (1)
511
return FileUtilities.
EnsureTrailingSlash
(path);
FileUtilities.cs (1)
1311
return
EnsureTrailingSlash
(s);
FrameworkLocationHelper.cs (1)
1535
this._pathToDotNetFrameworkReferenceAssemblies = FileUtilities.
EnsureTrailingSlash
(referencePath);
TempFileUtilities.cs (1)
74
return FileUtilities.
EnsureTrailingSlash
(basePath);
Utilities\FileSpecMatchTester.cs (1)
134
normalizedFixedDirPart = FileUtilities.
EnsureTrailingSlash
(normalizedFixedDirPart);
Microsoft.Build.Engine.UnitTests (8)
Evaluation\Expander_Tests.cs (2)
3399
Assert.Equal(Microsoft.Build.Shared.FileUtilities.
EnsureTrailingSlash
(tempPath), Microsoft.Build.Shared.FileUtilities.
EnsureTrailingSlash
(result));
FileUtilities_Tests.cs (6)
325
Assert.Equal(FileUtilities.FixFilePath(@"foo\bar\"), FileUtilities.
EnsureTrailingSlash
(@"foo\bar")); // "test 1"
326
Assert.Equal(FileUtilities.FixFilePath(@"foo/bar\"), FileUtilities.
EnsureTrailingSlash
(@"foo/bar")); // "test 2"
329
Assert.Equal(FileUtilities.FixFilePath(@"foo/bar/"), FileUtilities.
EnsureTrailingSlash
(@"foo/bar/")); // test 3"
330
Assert.Equal(FileUtilities.FixFilePath(@"foo\bar\"), FileUtilities.
EnsureTrailingSlash
(@"foo\bar\")); // test 4"
331
Assert.Equal(FileUtilities.FixFilePath(@"foo/bar\"), FileUtilities.
EnsureTrailingSlash
(@"foo/bar\")); // test 5"
332
Assert.Equal(FileUtilities.FixFilePath(@"foo\bar/"), FileUtilities.
EnsureTrailingSlash
(@"foo\bar/")); // "test 5"