Пример #1
0
        /// <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;
        }
Пример #2
0
 /// <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");
 }
Пример #3
0
 /// <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;
 }
Пример #4
0
 public CheckLinkWhich(
     IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense previousCheck,
     IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense detailChecker) : base(previousCheck)
 {
     this.which = detailChecker as TU;
 }
Пример #5
0
 /// <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;
 }