public void TestStartingLives()
        {
            var trigger = new StartingLives("5");

            Assert.AreEqual(5, trigger.Lives);
            var player = new Player();

            GameTrigger.OnGameStarting();
            Assert.AreEqual(trigger.Lives, player.LivesLeft);
        }
Exemplo n.º 2
0
        public void TestStartingGold()
        {
            var trigger = new StartingGold("50");

            Assert.AreEqual(50, trigger.Gold);
            var player = new Player();

            GameTrigger.OnGameStarting();
            Assert.AreEqual(trigger.Gold, player.Gold);
        }
Exemplo n.º 3
0
        public void TestStartTimer()
        {
            var trigger = new StartTimer("90");

            Assert.AreEqual(90, trigger.StartingTime);
            var player = new Player();

            GameTrigger.OnGameStarting();
            Assert.AreEqual(trigger.StartingTime, player.Time);
            GameTrigger.OnUpdateEverySecond();
        }