public void Exteriors_WhenNotEqual_HashCodesNotEqual() { // Arrange var exterior1 = new Exterior(); var exterior2 = new Exterior(Colors.Black); // Act var hashCodesEqual = exterior1.GetHashCode() == exterior2.GetHashCode(); // Assert hashCodesEqual.Should().BeFalse(); }
public void Exteriors_WhenEqual_HashCodesEqual() { // Arrange var exterior1 = new Exterior(); var exterior2 = new Exterior(); // Act var hashCodesEqual = exterior1.GetHashCode() == exterior2.GetHashCode(); // Assert hashCodesEqual.Should().BeTrue(); }