Exemplo n.º 1
0
        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);
        }
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 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);
        }
Exemplo n.º 4
0
        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);
        }