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 testEqualFailID()
 {
     Player two = new Player(2);
     Assert.IsFalse(two.Equals(p));
 }