public void Given_ComparingOneObjectWithNull_When_UsingEquals_Then_ReturnsFalse() { // arrange var firstName = "John"; var lastName = "Doe"; var valueObjectTest = new ValueObjectTest(firstName, lastName); // act var comparisonResult = valueObjectTest.Equals(null); // assert Assert.False(comparisonResult); }
public void Given_TwoObjectsWithDifferentTypes_When_UsingEquals_Then_ReturnsFalse() { // arrange var firstName = "John"; var lastName = "Doe"; var valueObjectTest1 = new ValueObjectTest(firstName, lastName); var valueObjectTest2 = new ValueObject2Test(firstName, lastName); // act var comparisonResult = valueObjectTest1.Equals(valueObjectTest2); // assert Assert.False(comparisonResult); }