Exemplo n.º 1
0
        public void OutbreakCountStartsAtZero()
        {
            var testLocationManager = new TestSingleLocationManager();
            var boardManager        = new BoardStateManager(testLocationManager);

            Assert.AreEqual <int>(0, boardManager.OutbreakCount);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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");
        }
Exemplo n.º 4
0
        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");
        }