public void Equals_Object_IsType() { object target = new MonthPart(4); var actual = new MonthPart(4).Equals(target); actual.Should().BeTrue(); }
public void Equals_Type_IsFalse() { var actual = new MonthPart(5).Equals(new MonthPart(6)); actual.Should().BeFalse(); }
public void Equals_Type_IsTrue() { var actual = new MonthPart(5).Equals(new MonthPart(5)); actual.Should().BeTrue(); }
public void Equals_Object_IsNotType() { var actual = new MonthPart(4).Equals("Hello"); actual.Should().BeFalse(); }
public void Equals_Object_IsNull() { var actual = new MonthPart(4).Equals(null); actual.Should().BeFalse(); }