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 SetCubesToThreeFromTwo() { var testLocationManager = new TestSingleLocationManager(); var loc = testLocationManager.GetLocations().First(); var boardManager = new BoardStateManager(testLocationManager); boardManager.AddCubes(loc, 2); boardManager.SetCubes(loc, 3); Assert.AreEqual <int>(3, boardManager.totalCubes(loc.Colour), "Increasing cubes to 3 from 2 doesn't result in correct number"); }
public void OutputCubesForOnlyTwoPlaces() { var testLocationManager = new TestLocationManager(); var boardManager = new BoardStateManager(testLocationManager); foreach (Location loc in testLocationManager.GetLocations().Take(2)) { boardManager.AddCubes(loc, 2); } Assert.AreEqual(2, boardManager.OutputLocationsAndDiseaseCounts().Count); }