public void TestEqualsMethodShouldReturnFalseIfSecondPositionObjectsIsNull() { var firstPosition = new Position(1, 1); var expected = false; var actual = firstPosition.Equals(null); Assert.AreEqual(expected, actual, "Method Equals should return false if the second Position objects is null"); }
public void TestEqualsMethodShouldReturnTrueIfTwoPositionObjectsAreEqual() { var firstPosition = new Position(1, 1); var secondPosition = new Position(1, 1); var expected = true; var actual = firstPosition.Equals(secondPosition); Assert.AreEqual(expected, actual, "Method Equals should return true if two Position objects are equal"); }