public void TestHumanTie() { Ass3.Player human = new Ass3.Player(100); human.Score = 100; Ass3.Player ai = new Ass3.Player(100); ai.Score = 100; Ass3.Program temp = new Ass3.Program(); String result = temp.DeclareWinner(human, ai); String expected = "The Two Opponents Agreed on a Tie!!!"; Assert.AreEqual(result, expected); }
public void TestHumanLose() { Ass3.Player human = new Ass3.Player(99); human.Score = 99; Ass3.Player ai = new Ass3.Player(100); ai.Score = 100; Ass3.Program temp = new Ass3.Program(); String result = temp.DeclareWinner(human, ai); String expected = "AI Won the Game!!!"; Assert.AreEqual(result, expected); }