/// <summary> /// Initializes a new instance of the <see cref="CheckLink{T}" /> class. /// </summary> /// <param name="previousCheck">The previous fluent check.</param> public CheckLink(IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense previousCheck) { var forkableCheck = previousCheck as IForkableCheck; this.newCheckWithSameValue = forkableCheck.ForkInstance() as T; }
/// <summary> /// Initializes a new instance of the <see cref="CheckLink{T}" /> class. /// </summary> /// <param name="previousCheck">The previous fluent check.</param> public CheckLink(IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense previousCheck) { this.forkableCheck = previousCheck as IForkableCheck; Debug.Assert(this.forkableCheck != null, "forkableCheck != null"); }
/// <summary> /// Initializes a new instance of the <see cref="ExtendableCheckLink{T,U}"/> class. /// </summary> /// <param name="previousCheck"> /// The previous fluent check. /// </param> /// <param name="originalComparand"> /// Comparand used for the first check. /// </param> public ExtendableCheckLink(IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense previousCheck, U originalComparand) : base(previousCheck) { this.originalComparand = originalComparand; }
public CheckLinkWhich( IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense previousCheck, IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense detailChecker) : base(previousCheck) { this.which = detailChecker as TU; }
/// <summary> /// Initializes a new instance of the <see cref="CheckLink{T}" /> class. /// </summary> /// <param name="previousCheck">The previous fluent check.</param> public CheckLink(IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense previousCheck) { this.forkableCheck = previousCheck as IForkableCheck; }