public ContinuedAssertionScope(AssertionScope predecessor, bool predecessorSucceeded)
 {
     this.predecessorSucceeded = predecessorSucceeded;
     this.predecessor          = predecessor;
 }
예제 #2
0
 /// <summary>
 /// Starts a new scope based on the given assertion strategy and parent assertion scope
 /// </summary>
 /// <param name="assertionStrategy">The assertion strategy for this scope.</param>
 /// <param name="parent">The parent assertion scope for this scope.</param>
 /// <exception cref="ArgumentNullException">Thrown when trying to use a null strategy.</exception>
 internal AssertionScope(IAssertionStrategy assertionStrategy, AssertionScope parent)
 {
     this.assertionStrategy = assertionStrategy
                              ?? throw new ArgumentNullException(nameof(assertionStrategy));
     this.parent = parent;
 }
예제 #3
0
 private AssertionScope(IAssertionStrategy _assertionStrategy)
 {
     assertionStrategy = _assertionStrategy;
     parent            = null;
 }
예제 #4
0
 internal ContinuedAssertionScope(AssertionScope predecessor, bool continueAsserting)
 {
     this.predecessor       = predecessor;
     this.continueAsserting = continueAsserting;
 }
예제 #5
0
 public Continuation(AssertionScope sourceScope, bool sourceSucceeded)
 {
     this.sourceScope = sourceScope;
     SourceSucceeded  = sourceSucceeded;
 }
예제 #6
0
 /// <summary>
 /// Starts a new scope based on the given assertion strategy.
 /// </summary>
 /// <param name="_assertionStrategy">The assertion strategy for this scope.</param>
 /// <exception cref="ArgumentNullException">Thrown when trying to use a null strategy.</exception>
 public AssertionScope(IAssertionStrategy _assertionStrategy)
 {
     assertionStrategy = _assertionStrategy
                         ?? throw new ArgumentNullException(nameof(_assertionStrategy));
     parent = null;
 }
예제 #7
0
 /// <summary>
 /// Starts a new scope based on the given assertion strategy.
 /// </summary>
 /// <param name="assertionStrategy">The assertion strategy for this scope.</param>
 /// <exception cref="ArgumentNullException">Thrown when trying to use a null strategy.</exception>
 public AssertionScope(IAssertionStrategy assertionStrategy)
 {
     this.assertionStrategy = assertionStrategy
                              ?? throw new ArgumentNullException(nameof(assertionStrategy));
     parent = null;
 }