Ejemplo n.º 1
0
 public void ensure_dup_dups()
 {
     Location loc = new Location(2, 3);
       Specify.That(loc.dup().Equals(loc)).ShouldBeTrue();
       Location new_loc = loc.dup();
       Specify.That(new_loc.x).ShouldEqual(2);
       Specify.That(new_loc.y).ShouldEqual(3);
       Specify.That(new_loc.Equals(loc)).ShouldBeTrue();
 }