public void DrawTwoCardCheckDifferent() { var locationManager = new TestLocationManager(); var deck = new InfectionDeckManager(locationManager); var firstDrawnLocation = deck.DrawCard(); var secondDrawnLocation = deck.DrawCard(); Assert.AreNotEqual <Location>(firstDrawnLocation, secondDrawnLocation); }
public void CheckIntensifyPutsDiscardBackOnTop() { var locationManager = new TestLocationManager(); var deck = new InfectionDeckManager(locationManager); var firstDrawnLocation = deck.DrawCard(); deck.IntensifyShuffle(); var secondDrawnLocation = deck.DrawCard(); Assert.AreEqual <Location>(firstDrawnLocation, secondDrawnLocation); }
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); }
public void CheckCardsPostIntensifyArentSame() { var locationManager = new TestLocationManager(); var deck = new InfectionDeckManager(locationManager); deck.DrawCard(); deck.IntensifyShuffle(); var firstDrawnLocation = deck.DrawCard(); var secondDrawnLocation = deck.DrawCard(); Assert.AreNotEqual <Location>(firstDrawnLocation, secondDrawnLocation); }
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"); }