public void Equals_PositiveTest() { var c1 = new Coords(3, 4); var c2 = new Coords(3, 4); Assert.IsTrue(c1.Equals(c2)); }
public void Equals_NegativeTest() { var c1 = new Coords(3, 4); var c2 = new Coords(3, 1); Assert.IsFalse(c1.Equals(c2)); c1 = new Coords(2, 4); c2 = new Coords(3, 4); Assert.IsFalse(c1.Equals(c2)); c1 = new Coords(2, 4); c2 = new Coords(3, 2); Assert.IsFalse(c1.Equals(c2)); }