public ContinuedAssertionScope(AssertionScope predecessor, bool predecessorSucceeded) { this.predecessorSucceeded = predecessorSucceeded; this.predecessor = predecessor; }
/// <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; }
private AssertionScope(IAssertionStrategy _assertionStrategy) { assertionStrategy = _assertionStrategy; parent = null; }
internal ContinuedAssertionScope(AssertionScope predecessor, bool continueAsserting) { this.predecessor = predecessor; this.continueAsserting = continueAsserting; }
public Continuation(AssertionScope sourceScope, bool sourceSucceeded) { this.sourceScope = sourceScope; SourceSucceeded = sourceSucceeded; }
/// <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; }
/// <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; }