public void AddCube() { var testLocationManager = new TestSingleLocationManager(); var loc = testLocationManager.GetLocations().First(); var boardManager = new BoardStateManager(testLocationManager); boardManager.AddCubes(loc, 2); Assert.AreEqual <int>(2, boardManager.totalCubes(loc.Colour), "Adding cubes doesn't increase total cubes"); }
public void SetCubesToThreeFromZero() { var testLocationManager = new TestSingleLocationManager(); var loc = testLocationManager.GetLocations().First(); var boardManager = new BoardStateManager(testLocationManager); boardManager.SetCubes(loc, 3); Assert.AreEqual <int>(3, boardManager.totalCubes(loc.Colour), "Setting cubes to 3 doesn't result in correct number"); }
public void TotalCubesStartAtZero() { var testLocationManager = new TestLocationManager(); var boardManager = new BoardStateManager(testLocationManager); var totalCubes = 0; foreach (DiseaseColour colour in Enum.GetValues(typeof(DiseaseColour))) { totalCubes += boardManager.totalCubes(colour); } Assert.AreEqual <int>(0, totalCubes, "Initial count for Cubes is non-zero"); }