public void SetUp() { Matcher = new SamePathOrUnderConstraint(@"/folder1/folder2").RespectCase; Description = @"Path under or matching ""/folder1/folder2"""; GoodValues = new object[] { @"/folder1/folder2", @"/folder1/./folder2", @"/folder1/junk/../folder2", @"\folder1\folder2", @"/folder1/folder2/folder3", @"/folder1/./folder2/folder3", @"/folder1/junk/../folder2/folder3", @"\folder1\folder2\folder3", }; BadValues = new object[] { 123, "/Folder1/Folder2", "/FOLDER1/./junk/../Folder2", "/FOLDER1/./junk/../Folder2/temp/../Folder3", "/folder1/folder3", "/folder1/./folder2/../folder3", "/folder1" }; }
public void SetUp() { Matcher = new SamePathOrUnderConstraint(@"C:\folder1\folder2").IgnoreCase; Description = @"Path under or matching ""C:\folder1\folder2"""; GoodValues = new object[] { @"C:\folder1\folder2", @"C:\Folder1\Folder2", @"C:\folder1\.\folder2", @"C:\folder1\junk\..\folder2", @"C:\FOLDER1\.\junk\..\Folder2", @"C:/folder1/folder2", @"C:\folder1\folder2\folder3", @"C:\folder1\.\folder2\folder3", @"C:\folder1\junk\..\folder2\folder3", @"C:\FOLDER1\.\junk\..\Folder2\temp\..\Folder3", @"C:/folder1/folder2/folder3", }; BadValues = new object[] { 123, @"C:\folder1\folder3", @"C:\folder1\.\folder2\..\file.temp" }; }
public void SetUp() { theConstraint = new SamePathOrUnderConstraint(@"/folder1/folder2").RespectCase; expectedDescription = @"Path under or matching ""/folder1/folder2"""; stringRepresentation = @"<samepathorunder ""/folder1/folder2"" respectcase>"; }
public void SetUp() { theConstraint = new SamePathOrUnderConstraint(@"C:\folder1\folder2").IgnoreCase; expectedDescription = @"Path under or matching ""C:\folder1\folder2"""; stringRepresentation = @"<samepathorunder ""C:\folder1\folder2"" ignorecase>"; }
public void SetUp() { theConstraint = new SamePathOrUnderConstraint( @"C:\folder1\folder2" ).IgnoreCase; expectedDescription = @"Path under or matching ""C:\folder1\folder2"""; stringRepresentation = @"<samepathorunder ""C:\folder1\folder2"" ignorecase>"; }
public void SetUp() { theConstraint = new SamePathOrUnderConstraint( @"/folder1/folder2" ).RespectCase; expectedDescription = @"Path under or matching ""/folder1/folder2"""; stringRepresentation = @"<samepathorunder ""/folder1/folder2"" respectcase>"; }