예제 #1
0
        public void TestCannonHitPerson()
        {
            Cannon cannon = Cannon.GetInstance();

            cannon.SetTarget(6900);
            cannon.SetPerson(12621);
            var shot = cannon.Shoot(45, 350);

            Assert.IsTrue(shot.Item2 == "You hit a person and killed them. You lose.");//Confirms you hit a person not a target.
        }