public void TestCleanUp() { this.dummy = null; this.axe = null; }
public void SetDummy() { this.dummy = new Dummy(100, 100); }
public void AliveDummyCanGiveXP() { Dummy dummy = new Dummy(10, 10); Assert.Throws <InvalidOperationException>(() => dummy.GiveExperience()); }
public void DeadDummyThrowsExceptionIfAttacked() { Dummy dummy = new Dummy(0, 0); Assert.Throws <InvalidOperationException>(() => dummy.TakeAttack(1)); }
public void TestInit() { this.axe = new Axe(attack, durability); this.dummy = new Dummy(health, experience); }
public void TestIfDummyIsAlive() { var dummy = new Dummy(10, 10); Assert.IsTrue(!dummy.IsDead()); }
public void SetDummies() { this.aliveDummy = new Dummy(AliveDummyHealth, Experience); this.deadDummy = new Dummy(DeadDummyHealth, Experience); }