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