/// <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; }
/// <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="CheckLink{T}" /> class. /// </summary> /// <param name="previousCheck">The previous fluent check.</param> public CheckLink(IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense previousCheck) { IForkableCheck forkableCheck = previousCheck as IForkableCheck; this.newCheckWithSameValue = forkableCheck.ForkInstance() as T; }