public void Equals_is_false_one_is_different_type() { var valueObjectTestSubject01 = new ValueObjectTestSubject( "foo", 1337, Guid.NewGuid() ); string valueObjectTestSubject02 = "baa"; Assert.False(valueObjectTestSubject01.Equals(valueObjectTestSubject02)); }
public void Equals_is_false_if_one_is_null() { var valueObjectTestSubject01 = new ValueObjectTestSubject( "foo", 1337, Guid.NewGuid() ); ValueObjectTestSubject valueObjectTestSubject02 = null; Assert.False(valueObjectTestSubject01.Equals(valueObjectTestSubject02)); }