public void WhenDirectoryHasDirectories_ThenAssertTrue() { BaseDir.CreateDirectory("Test-ContainsDir1"); BaseDir.CreateDirectory("Test-ContainsDir2"); Assert.DoesNotThrow(() => AssertDir.ContainsDirectories(ExistingDirectory, 2)); }
public void InitTest() { if (!BaseDir.Exists()) { BaseDir.CreateDirectory(); } }
public void WhenDirectoryHasDirectories_ThenAssertFalse() { BaseDir.CreateDirectory("Test-HasNoDirectories"); Assert.Throws <AssertionException>(() => AssertDir.HasNoDirectories(ExistingDirectory)); }