public void IsNotWithinFailsWithStringPath() { using (TestDirectory td = new TestDirectory("ParentDirectory", true)) { DirectoryAssert.IsNotWithin(td.directoryName, td.diSubSubDirectory.FullName); } }
public void IsNotWithinFailsWithDirectoryInfo() { using (TestDirectory td = new TestDirectory("ParentDirectory", true)) { DirectoryAssert.IsNotWithin(td.directoryInformation, td.diSubSubDirectory); } }
public void IsNotWithinPassesWhenOutsidePathUsingStringPath() { using (TestDirectory td = new TestDirectory("ParentDirectory", true)) { DirectoryAssert.IsNotWithin(td.directoryName, Environment.SpecialFolder.System.ToString()); } }
public void IsNotWithinThrowsWhenBothAreNull() { DirectoryInfo expected = null; DirectoryInfo actual = null; DirectoryAssert.IsNotWithin(expected, actual); }
public void IsNotWithinPassesWhenOutsidePathUsingDirectoryInfo() { using (TestDirectory td = new TestDirectory("ParentDirectory", true)) { DirectoryInfo diSystemFolder = new DirectoryInfo(Environment.SpecialFolder.System.ToString()); DirectoryAssert.IsNotWithin(td.directoryInformation, diSystemFolder); } }