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