Exemplo n.º 1
0
 public void testEqualsPass()
 {
     String name = "Paige";
     Player two = new Player(0);
     Assert.IsTrue(two.Equals(p));
     p.setName(name);
     two.setName(name);
     Assert.IsTrue(p.Equals(two));
 }
Exemplo n.º 2
0
 public void testEqualFailStringName()
 {
     p.setName("George");
     Player two = new Player(0);
     two.setName("Fred");
     Assert.IsFalse(p.Equals(two));
 }