Ejemplo n.º 1
0
        public void BuyDmg()
        {
            // Arrange
            int expectedherodmg  = modelmock.Object.Hero.AttackDMG + 1;
            int expectedherocash = modelmock.Object.Hero.Cash - modelmock.Object.DmgPrice;

            // ACT
            gameLogic.BuyDmg();

            // ASSERT
            Assert.That(modelmock.Object.Hero.AttackDMG, Is.EqualTo(expectedherodmg));
            Assert.That(modelmock.Object.Hero.Cash, Is.EqualTo(expectedherocash));
        }