Ejemplo n.º 1
0
 public void TestPrintFirstS()
 {
     Entry Test = new Entry();
     Test.SetFirstShot(10);
     Assert.AreEqual(Test.PrintFirstShot(),"X");
     Test.SetFirstShot(5);
     Assert.AreEqual(Test.PrintFirstShot(), "5");
 }
Ejemplo n.º 2
0
 public void TestPrintSecondS()
 {
     Entry Test = new Entry();
     Test.SetFirstShot(5);
     Assert.AreEqual(Test.PrintSecondShot()," ");
     Test.SetSecondShot(5);
     Assert.AreEqual(Test.PrintSecondShot(),"/");
     Test.SetFirstShot(4);
     Assert.AreEqual(Test.PrintSecondShot(),"5");
 }
Ejemplo n.º 3
0
        public void TestEntryPoints()
        {
            Entry Test = new Entry();

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

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