public void ContinueToLiveTest(int neighorCount) { // Given var cell = new LiveCell(neighorCount); // When var nextGenDeath = cell.WillThisCellSurvive(); // Then Assert.IsFalse(nextGenDeath, "Cell should lived but it died"); }
public void OverpopulationTest([Values(4, 5, 6, 7, 8)] int neighborCount) { // Given var cell = new LiveCell(neighborCount); // When var nextGenDeath = cell.WillThisCellSurvive(); // Then Assert.IsTrue(nextGenDeath, "Cell should have died, but lived"); }
public void UnderPopulationTest(int neighorCount) { // Given var cell = new LiveCell(neighorCount); // When var nextGenDeath = cell.WillThisCellSurvive(); // Then Assert.IsTrue(nextGenDeath, "Cell should have died but it lived."); }