コード例 #1
0
 public void TestCleanUp()
 {
     this.dummy = null;
     this.axe   = null;
 }
コード例 #2
0
 public void SetDummy()
 {
     this.dummy = new Dummy(100, 100);
 }
コード例 #3
0
        public void AliveDummyCanGiveXP()
        {
            Dummy dummy = new Dummy(10, 10);

            Assert.Throws <InvalidOperationException>(() => dummy.GiveExperience());
        }
コード例 #4
0
        public void DeadDummyThrowsExceptionIfAttacked()
        {
            Dummy dummy = new Dummy(0, 0);

            Assert.Throws <InvalidOperationException>(() => dummy.TakeAttack(1));
        }
コード例 #5
0
 public void TestInit()
 {
     this.axe   = new Axe(attack, durability);
     this.dummy = new Dummy(health, experience);
 }
コード例 #6
0
        public void TestIfDummyIsAlive()
        {
            var dummy = new Dummy(10, 10);

            Assert.IsTrue(!dummy.IsDead());
        }
コード例 #7
0
 public void SetDummies()
 {
     this.aliveDummy = new Dummy(AliveDummyHealth, Experience);
     this.deadDummy  = new Dummy(DeadDummyHealth, Experience);
 }