示例#1
0
 public void IsNotWithinFailsWithStringPath()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", true))
     {
         DirectoryAssert.IsNotWithin(td.directoryName, td.diSubSubDirectory.FullName);
     }
 }
示例#2
0
 public void IsNotWithinFailsWithDirectoryInfo()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", true))
     {
         DirectoryAssert.IsNotWithin(td.directoryInformation, td.diSubSubDirectory);
     }
 }
示例#3
0
 public void IsNotWithinPassesWhenOutsidePathUsingStringPath()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", true))
     {
         DirectoryAssert.IsNotWithin(td.directoryName, Environment.SpecialFolder.System.ToString());
     }
 }
示例#4
0
        public void IsNotWithinThrowsWhenBothAreNull()
        {
            DirectoryInfo expected = null;
            DirectoryInfo actual   = null;

            DirectoryAssert.IsNotWithin(expected, actual);
        }
示例#5
0
 public void IsNotWithinPassesWhenOutsidePathUsingDirectoryInfo()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", true))
     {
         DirectoryInfo diSystemFolder = new DirectoryInfo(Environment.SpecialFolder.System.ToString());
         DirectoryAssert.IsNotWithin(td.directoryInformation, diSystemFolder);
     }
 }