public void CoordsTests(int row1, int col1, int row2, int col2, int expected) { /* * int x = 0; * int y = 1; * Assert.AreEqual(-1, x.CompareTo(y)); * Assert.AreEqual(1, y.CompareTo(x)); * Assert.AreEqual(0, x.CompareTo(x)); * Assert.AreEqual(0, y.CompareTo(y)); */ var coords1 = new Coords { Row = row1, Col = col1 }; var coords2 = new Coords { Row = row2, Col = col2 }; Assert.AreEqual(expected, coords1.CompareTo(coords2)); }