public void GivenSetOfBoxesNotContainingKey_WhenFindWithRecursionIsInvoked_ThenNullIsReturned() { // Arrange var box = GetBox(); // Act var result = KeyFinder.FindWithRecursion(box); // Assert Assert.Null(result); }
public void GivenSetOfBoxesContainingKey_WhenFindWithRecursionIsInvoked_ThenKeyWithBoxIsReturned() { // Arrange var box = GetBox(withKey: true); // Act var result = KeyFinder.FindWithRecursion(box); // Assert Assert.NotNull(result); Assert.True(result.HasKey); }