public void OutbreakCountStartsAtZero() { var testLocationManager = new TestSingleLocationManager(); var boardManager = new BoardStateManager(testLocationManager); Assert.AreEqual <int>(0, boardManager.OutbreakCount); }
public void DrawSingleCardReturnsCorrectLocation() { var locationManager = new TestSingleLocationManager(); var singleLocation = locationManager.GetLocations().First(); var deck = new InfectionDeckManager(locationManager); var drawnLocation = deck.DrawCard(); Assert.AreEqual <Location>(singleLocation, drawnLocation); }
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 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"); }