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