public void Compare_PersianDate_With_Equals_Method() { PersianDate pd1 = new PersianDate(1384, 10, 1); PersianDate pd2 = new PersianDate(1389, 12, 25); PersianDate pd3 = new PersianDate(1389, 12, 25); Assert.True(pd2.Equals((object)pd3)); Assert.True(pd2.Equals(pd3)); Assert.False(pd1.Equals(pd2)); }
public void Compare_PersianDate_With_Equals_Method_With_Invalid_Type() { PersianDate pd1 = PersianDate.Now; Assert.False(pd1.Equals(string.Empty)); }