16 references to EndsWithSlash
Microsoft.Build (5)
Definition\Toolset.cs (1)
415
if (FileUtilities.
EndsWithSlash
(toolsPathToUse))
FileUtilities.cs (3)
270
if (
EndsWithSlash
(path))
704
else if ((directory.Length > 0) && !
EndsWithSlash
(directory))
764
if (NativeMethodsShared.IsWindows && !
EndsWithSlash
(fullPath))
Modifiers.cs (1)
415
if (!
EndsWithSlash
(modifiedItemSpec))
Microsoft.Build.Engine.UnitTests (11)
FileMatcher_Tests.cs (1)
2277
if (FileUtilities.
EndsWithSlash
(normalizedPath))
FileUtilities_Tests.cs (10)
222
Assert.True(FileUtilities.
EndsWithSlash
(@"C:\foo\"));
223
Assert.True(FileUtilities.
EndsWithSlash
(@"C:\"));
224
Assert.True(FileUtilities.
EndsWithSlash
(@"\"));
226
Assert.True(FileUtilities.
EndsWithSlash
(@"http://www.microsoft.com/"));
227
Assert.True(FileUtilities.
EndsWithSlash
(@"//server/share/"));
228
Assert.True(FileUtilities.
EndsWithSlash
(@"/"));
230
Assert.False(FileUtilities.
EndsWithSlash
(@"C:\foo"));
231
Assert.False(FileUtilities.
EndsWithSlash
(@"C:"));
232
Assert.False(FileUtilities.
EndsWithSlash
(@"foo"));
235
Assert.False(FileUtilities.
EndsWithSlash
(String.Empty));