public TestContext(SetupContext setupContext, string testDescription, Action <T, SetupContext> altTestMethod) : this(setupContext, testDescription) { this.altTestMethod = altTestMethod; }
/// <summary> /// Creates a new test Context instance using the specified setupContext and /// test description. /// </summary> /// <param name="setupContext">The setup or initialization context used for this /// test.</param> /// <param name="testDescription">The description of the current test.</param> /// <param name="outputAction">The delegate containing the test which returns a value /// that can be validated during the verification phase of the test.</param> public TestContext(SetupContext setupContext, string testDescription, Func <T, object> outputAction) : this(setupContext, testDescription) { this.outputAction = outputAction; }
/// <summary> /// Creates a new test Context instance using the specified setupContext and /// test description. /// </summary> /// <param name="setupContext">The setup or initialization context used for this /// test.</param> /// <param name="testDescription">The description of the current test.</param> /// <param name="testMethod">The delegate containing the test actions</param> public TestContext(SetupContext setupContext, string testDescription, Action <T> testMethod) : this(setupContext, testDescription) { this.testMethod = testMethod; }