public void PlayerConstructorTest3() { Player georgi = new Player("Georgi", 14); bool isInstanceOfPlayer=false; if (georgi.GetType() == typeof(Player)) { isInstanceOfPlayer = true; } Assert.IsTrue(isInstanceOfPlayer); }
public void PlayerConstructorTest2() { Player georgi = new Player("Georgi", 14); Assert.AreEqual(14, georgi.Points); }
public void PlayerConstructorTest() { Player georgi = new Player("Georgi", 14); Assert.AreEqual("Georgi", georgi.Name); }