Skip to content

Commit

Permalink
Add BoardTile_CleanVisited_Should_Pass to BoardTileTest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rwang63 authored and poyea committed Oct 25, 2021
1 parent d2ce988 commit af9e7a1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions UnitTests/Model/Tile/BoardTileTest.cs
Original file line number Diff line number Diff line change
@@ -97,5 +97,27 @@ public void BoardTile_LetterMultiplier_Default_Square_Should_Return_1()
// Assert
Assert.AreEqual(1, result);
}

/*
* This is an interesting unit test. The method that is being tested
* (CleanVisited) is void, so we can't verify anything except the
* fact that we made it through the method successfully. So, the
* goal of this unit test is exactly that: If we get through this unit
* test and it passes, then we know we made it through that method
* successfully.
*/
[Test]
public void BoardTile_CleanVisited_Should_Pass()
{
// Arrange

// Act
bt.CleanVisited();

// Reset

// Assert
Assert.IsTrue(true);
}
}
}

0 comments on commit af9e7a1

Please sign in to comment.