public void Equals_DifferentCalendars() { CalendarSystem calendar = CalendarSystem.Julian; YearMonth yearMonth1 = new YearMonth(2011, 1, calendar); YearMonth yearMonth2 = new YearMonth(2011, 1, CalendarSystem.Iso); Assert.AreNotEqual(yearMonth1, yearMonth2); Assert.AreNotEqual(yearMonth1.GetHashCode(), yearMonth2.GetHashCode()); Assert.IsFalse(yearMonth1 == yearMonth2); Assert.IsTrue(yearMonth1 != yearMonth2); Assert.IsFalse(yearMonth1.Equals(yearMonth2)); // IEquatable implementation }