Пример #1
0
 public static AndConstraint <DateTimeAssertions> BeNear(this DateTimeAssertions assertions,
                                                         DateTime nearbyTime,
                                                         int precision  = 850,
                                                         string because = "",
                                                         params object[] becauseArgs)
 {
     return(assertions.BeCloseTo(nearbyTime, precision, because, becauseArgs));
 }
Пример #2
0
 public static AndConstraint <DateTimeAssertions> BeCloseToDateWithDefaultPrecision(
     this DateTimeAssertions data,
     DateTime expectedValue)
 {
     return(data.BeCloseTo(expectedValue, TestFixtureConstants.MaxDiffForComparingDateTimes));
 }