public void ShouldUseMana(int usedMana, int initialMana) { var sut = new SimplePlayer("Player", _mockHand.Object, 30, initialMana, initialMana); sut.UseMana(usedMana); int remainingMana = Math.Max(initialMana - usedMana, 0); Assert.Equal(remainingMana, sut.Mana); }
public void Should_Refresh_Mana(int initialMana, int maxMana) { var sut = new SimplePlayer("Player", _mockHand.Object, 30, initialMana, maxMana); sut.UseMana(initialMana); sut.RefreshMana(); if (initialMana < maxMana) { Assert.Equal(initialMana + 1, sut.Mana); Assert.Equal(initialMana + 1, sut.ManaSlot); } else { Assert.Equal(initialMana, sut.Mana); Assert.Equal(initialMana, sut.ManaSlot); } }