public void Test_ContainsPath() { var array = new IPath[] { @"C:\File.txt".ToAbsoluteFilePath(), @".\".ToRelativeDirectoryPath() }; Assert.IsTrue(array.ContainsPath(@".\".ToRelativeDirectoryPath())); Assert.IsFalse(array.ContainsPath(@"..\".ToRelativeDirectoryPath())); }
public void Test_ContainsPath() { var array = new IPath[] { @"C:\File.txt".ToAbsoluteFilePath(), @".\".ToRelativeDirectoryPath() }; Assert.IsTrue(array.ContainsPath(@".\".ToRelativeDirectoryPath())); Assert.IsFalse(array.ContainsPath(@"..\".ToRelativeDirectoryPath())); }