public void BoundedWorldEnsureWorldHasCells() { int height = 100; int width = 100; BoundedWorld world = new BoundedWorld(width, height); int expected_number_of_dead_cells = 10000; int expected_number_of_live_cells = 0; int actual_number_of_live_cells = world.AliveCellCount(); int actual_number_of_dead_cells = world.DeadCellCount(); Assert.AreEqual(expected_number_of_dead_cells, actual_number_of_dead_cells); Assert.AreEqual(expected_number_of_live_cells, actual_number_of_live_cells); }
public void BoundedWorldEnsureWorldHasCells() { /* Begin Arrange */ int height = 100; int width = 100; BoundedWorld my_world = new BoundedWorld(width, height); /* End Arrange */ /* Begin Act */ int expected_number_of_dead_cells = 10000; int expected_number_of_alive_cells = 0; int actual_number_of_dead_cells = my_world.DeadCellCount(); int actual_number_of_alive_cells = my_world.AliveCellCount(); /* End Act */ /* Begin Assert */ Assert.AreEqual(expected_number_of_dead_cells, actual_number_of_dead_cells); Assert.AreEqual(expected_number_of_alive_cells, actual_number_of_alive_cells); /* End Assert */ }