Esempio n. 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)
 {
     this.forkableCheck = previousCheck as IForkableCheck;
 }
Esempio n. 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");
 }
Esempio n. 3
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)
        {
            IForkableCheck forkableCheck = previousCheck as IForkableCheck;

            this.newCheckWithSameValue = forkableCheck.ForkInstance() as T;
        }