55 references to FileUtilitiesRegex
Microsoft.Build (9)
FileUtilities.cs (2)
766
if (
FileUtilitiesRegex
.IsDrivePattern(fileSpec) ||
767
FileUtilitiesRegex
.IsUncPattern(fullPath))
Modifiers.cs (7)
417
ErrorUtilities.VerifyThrow(
FileUtilitiesRegex
.StartsWithUncPattern(modifiedItemSpec),
467
if (
FileUtilitiesRegex
.StartsWithDrivePattern(modifiedItemSpec))
473
length =
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(modifiedItemSpec);
622
int uncMatchLength =
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(path);
625
if (
FileUtilitiesRegex
.IsDrivePattern(path) ||
626
FileUtilitiesRegex
.IsDrivePatternWithSlash(path) ||
641
if (
FileUtilitiesRegex
.StartsWithDrivePattern(path) &&
Microsoft.Build.Engine.UnitTests (46)
FileUtilitiesRegex_Tests.cs (46)
61
FileUtilitiesRegex
.IsDrivePattern(s).ShouldBeTrue();
63
FileUtilitiesRegex
.IsDrivePattern(s).ShouldBeTrue();
87
FileUtilitiesRegex
.StartsWithDrivePattern(s).ShouldBeTrue();
89
FileUtilitiesRegex
.StartsWithDrivePattern(s).ShouldBeTrue();
119
FileUtilitiesRegex
.StartsWithDrivePattern(value).ShouldBe(false);
120
FileUtilitiesRegex
.IsDrivePattern(value).ShouldBe(false);
140
FileUtilitiesRegex
.StartsWithDrivePattern(value).ShouldBeTrue();
159
FileUtilitiesRegex
.IsUncPattern(winDirectory).ShouldBe(false);
160
FileUtilitiesRegex
.IsUncPattern(unixDirectory).ShouldBe(false);
169
FileUtilitiesRegex
.StartsWithUncPattern(winDirectory).ShouldBeTrue();
170
FileUtilitiesRegex
.StartsWithUncPattern(unixDirectory).ShouldBeTrue();
189
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(13);
190
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(13);
214
FileUtilitiesRegex
.IsUncPattern(winDirectory).ShouldBeTrue();
215
FileUtilitiesRegex
.IsUncPattern(unixDirectory).ShouldBeTrue();
235
FileUtilitiesRegex
.StartsWithUncPattern(winDirectory).ShouldBeTrue();
236
FileUtilitiesRegex
.StartsWithUncPattern(unixDirectory).ShouldBeTrue();
255
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(13);
256
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(13);
290
FileUtilitiesRegex
.IsUncPattern(winDirectory).ShouldBeTrue();
291
FileUtilitiesRegex
.IsUncPattern(unixDirectory).ShouldBeTrue();
300
FileUtilitiesRegex
.StartsWithUncPattern(winDirectory).ShouldBeTrue();
301
FileUtilitiesRegex
.StartsWithUncPattern(unixDirectory).ShouldBeTrue();
335
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(9);
336
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(9);
355
FileUtilitiesRegex
.IsUncPattern(winDirectory).ShouldBe(false);
356
FileUtilitiesRegex
.IsUncPattern(unixDirectory).ShouldBe(false);
375
FileUtilitiesRegex
.StartsWithUncPattern(winDirectory).ShouldBeTrue();
376
FileUtilitiesRegex
.StartsWithUncPattern(unixDirectory).ShouldBeTrue();
400
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(9);
401
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(9);
420
FileUtilitiesRegex
.IsUncPattern(winDirectory).ShouldBe(false);
421
FileUtilitiesRegex
.IsUncPattern(unixDirectory).ShouldBe(false);
440
FileUtilitiesRegex
.StartsWithUncPattern(winDirectory).ShouldBe(false);
441
FileUtilitiesRegex
.StartsWithUncPattern(unixDirectory).ShouldBe(false);
463
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(-1);
464
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(-1);
483
FileUtilitiesRegex
.IsUncPattern(winDirectory).ShouldBe(false);
484
FileUtilitiesRegex
.IsUncPattern(unixDirectory).ShouldBe(false);
503
FileUtilitiesRegex
.StartsWithUncPattern(winDirectory).ShouldBe(false);
504
FileUtilitiesRegex
.StartsWithUncPattern(unixDirectory).ShouldBe(false);
526
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(-1);
527
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(-1);
541
FileUtilitiesRegex
.IsUncPattern(string.Empty).ShouldBeFalse();
542
FileUtilitiesRegex
.StartsWithUncPattern(string.Empty).ShouldBeFalse();
543
FileUtilitiesRegex
.StartsWithUncPatternMatchLength(string.Empty).ShouldBe(-1);