コード例 #1
0
 public void PlayerConstructorTest3()
 {
     Player georgi = new Player("Georgi", 14);
     bool isInstanceOfPlayer=false;
     if (georgi.GetType() == typeof(Player))
     {
         isInstanceOfPlayer = true;
     }
     Assert.IsTrue(isInstanceOfPlayer);
 }
コード例 #2
0
 public void PlayerConstructorTest2()
 {
     Player georgi = new Player("Georgi", 14);
     Assert.AreEqual(14, georgi.Points);
 }
コード例 #3
0
 public void PlayerConstructorTest()
 {
     Player georgi = new Player("Georgi", 14);
     Assert.AreEqual("Georgi", georgi.Name);
 }