示例#1
0
        public void TestmatchAlreadyEndedP2()
        {
            Match match = new Match();

            for (int i = 0; i < 73; i++)
            {
                match.PlayerTwoWinsPoint();
            }
        }
示例#2
0
        public void TestMatchNotDone()
        {
            Match match = new Match();

            for (int i = 0; i < 50; i++)
            {
                match.PlayerTwoWinsPoint();
            }
            Assert.AreEqual("0 - 6, 0 - 6, 0 - 0, love - 30", match.Score());
        }
示例#3
0
        public void TestCleanSweepP2()
        {
            Match match = new Match();

            for (int i = 0; i < 72; i++)
            {
                match.PlayerTwoWinsPoint();
            }
            Assert.AreEqual("0 - 6, 0 - 6, 0 - 6", match.Score());
        }
示例#4
0
        public void TestCleanSweep()
        {
            Match match = new Match();

            for (int i = 0; i < 72; i++)
            {
                match.PlayerOneWinsPoint();
            }
            Assert.AreEqual("6 - 0, 6 - 0, 6 - 0", match.Score());
        }