public void can_determine_equality() { decimal openTime = 1M; decimal openHours = 10.5M; var subjectA = new ScheduleTimeSpan(openTime, openHours); var subjectB = new ScheduleTimeSpan(openTime, openHours); Assert.IsTrue(subjectA.Equals(subjectB)); }
public void can_determine_inequality_same_end() { decimal openTimeA = 0M; decimal openHoursA = 10.5M; decimal openTimeB = 6M; decimal openHoursB = 10.5M; var subjectA = new ScheduleTimeSpan(openTimeA, openHoursA); var subjectB = new ScheduleTimeSpan(openTimeB, openHoursB); Assert.IsFalse(subjectA.Equals(subjectB)); }
public void can_determine_inequality() { decimal openTimeA = 1M; decimal openHoursA = 2M; decimal openTimeB = 3M; decimal openHoursB = 4M; var subjectA = new ScheduleTimeSpan(openTimeA, openHoursA); var subjectB = new ScheduleTimeSpan(openTimeB, openHoursB); Assert.IsFalse(subjectA.Equals(subjectB)); }