Exemplo n.º 1
0
        public void TestPrintThirdS()
        {
            Entry Test = new Entry();

            Assert.AreEqual(Test.PrintLastShot()," ");

            Test.SetThirdShot(10);
            Assert.AreEqual(Test.PrintLastShot(),"X");

            Test.SetThirdShot(6);
            Test.SetSecondShot(4);
            Assert.AreEqual(Test.PrintLastShot(), "/");

            Test.SetSecondShot(3);
            Assert.AreEqual(Test.PrintLastShot(), "6");
        }
Exemplo n.º 2
0
        public void TestEntryPoints()
        {
            Entry Test = new Entry();

            Test.SetFirstShot(5);
            Test.SetSecondShot(7);
            Test.SetThirdShot(9);

            Assert.AreEqual(Test.EntryPoints(),21);
        }