/// <summary> /// Builds an instance of <see cref="Constraint"/> that tests whether the actual /// value does not occur either on, or before the specified <paramref name="date"/>. /// </summary> /// <param name="entry">Extension entry point.</param> /// <param name="date">The expected date to compare the actual value with.</param> /// <returns>Instance built.</returns> public static Constraint OnOrBefore(this Must.NotBeEntryPoint entry, DateTime date) { return(Is.Not.LessThanOrEqualTo(date)); }
public static SpecificationConstraint <T> SatisfiedBy <T>(this Must.NotBeEntryPoint entry, T value) { return(new SpecificationConstraint <T>(value, false)); }
/// <summary> /// Builds an instance of <see cref="Constraint"/> that tests whether the actual /// value does not occur within the specified time span (20 ms by default) from /// the specified <paramref name="date"/>. /// </summary> /// <param name="entry">Extension entry point.</param> /// <param name="date">The expected date to compare the actual value with.</param> /// <param name="within"></param> /// <returns>Instance built.</returns> public static Constraint CloseTo(this Must.NotBeEntryPoint entry, DateTime date, TimeSpan within) { return(Is.Not.EqualTo(date).Within(within)); }
/// <summary> /// Builds an instance of <see cref="Constraint"/> that tests whether the actual /// value does not occur either on, or after the specified <paramref name="date"/>. /// </summary> /// <param name="entry">Extension entry point.</param> /// <param name="date">The expected date to compare the actual value with.</param> /// <returns>Instance built.</returns> public static Constraint OnOrAfter(this Must.NotBeEntryPoint entry, DateTime date) { return(Is.Not.GreaterThanOrEqualTo(date)); }
/// <summary> /// Builds an instance of <see cref="Constraint"/> that tests whether the actual /// value does not occur within the specified number of milliseconds (20ms by default) from /// the specified <paramref name="date"/>. /// </summary> /// <param name="entry">Extension entry point.</param> /// <param name="date">The expected date to compare the actual value with.</param> /// <param name="ms"></param> /// <returns>Instance built.</returns> public static Constraint CloseTo(this Must.NotBeEntryPoint entry, DateTime date, uint ms = 20) { return(CloseTo(entry, date, TimeSpan.FromMilliseconds(ms))); }
public static PropertyConstraint Ok(this Must.NotBeEntryPoint entry, int notDefinedStatusCode) { return(new LambdaPropertyConstraint <HttpResponse>(r => r.StatusCode, Is.EqualTo((HttpStatusCode)notDefinedStatusCode))); }
public static void Extended(this Must.NotBeEntryPoint entry) { }
public static void Extended(this Must.NotBeEntryPoint entry, int argument) { }
public static PartialChangeConstraint PartialChange(this Must.NotBeEntryPoint entry, Money remainder, uint totalCount, params QDenomination[] denominations) { return(new PartialChangeConstraint(remainder, totalCount, denominations)); }