コード例 #1
0
ファイル: CheckLink.cs プロジェクト: tprzepiorka/NFluent
        /// <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
ファイル: CheckLink.cs プロジェクト: pmiossec/NFluent
 /// <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
ファイル: CheckLinkWhich.cs プロジェクト: yhan/NFluent
 public CheckLinkWhich(
     IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense previousCheck,
     IMustImplementIForkableCheckWithoutDisplayingItsMethodsWithinIntelliSense detailChecker) : base(previousCheck)
 {
     this.which = detailChecker as TU;
 }
コード例 #5
0
ファイル: CheckLink.cs プロジェクト: yhan/NFluent
 /// <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;
 }