コード例 #1
0
            public void WhenDirectoryHasDirectories_ThenAssertTrue()
            {
                BaseDir.CreateDirectory("Test-ContainsDir1");
                BaseDir.CreateDirectory("Test-ContainsDir2");

                Assert.DoesNotThrow(() => AssertDir.ContainsDirectories(ExistingDirectory, 2));
            }
コード例 #2
0
 public void InitTest()
 {
     if (!BaseDir.Exists())
     {
         BaseDir.CreateDirectory();
     }
 }
コード例 #3
0
            public void WhenDirectoryHasDirectories_ThenAssertFalse()
            {
                BaseDir.CreateDirectory("Test-HasNoDirectories");

                Assert.Throws <AssertionException>(() => AssertDir.HasNoDirectories(ExistingDirectory));
            }