public void EqualOperator_Should_ReturnTrue_When_BothAreNull() { // Arrange & Act var actual = MyValueObject.TestEqualOperator(null, null); // Assert Assert.True(actual); }
public void EqualOperator_Should_ReturnFalse_When_RightIsNull() { // Arrange var value1 = new MyValueObject(10, "Unit Tests"); // Act var actual = MyValueObject.TestEqualOperator(value1, null); // Assert Assert.False(actual); }
public void EqualOperator_Should_ReturnTrueWithSameValues() { // Arrange var value1 = new MyValueObject(10, "Unit Tests"); var value2 = new MyValueObject(10, "Unit Tests"); // Act var actual = MyValueObject.TestEqualOperator(value1, value2); // Assert Assert.True(actual); }