Example #1
0
        protected void AssertResult(Exception result, string label = null)
        {
            label = label ?? ScenarioLabel;
            var resultExpectation = GetResultExpectation(GetCurrentScenarios, errorCheckOrder);
            var checker           = ResponseChecker.Create(result, label);

            checker.CheckResponse(resultExpectation);
        }
Example #2
0
        protected void AssertResult(IHttpActionResult result, string label = null)
        {
            label = label ?? ScenarioLabel;
            var resultExpectation = GetResultExpectation(GetCurrentScenarios, errorCheckOrder);
            var checker           = ResponseChecker.Create(result, label);

            checker.SetScenarioLabel(ScenarioLabel);
            Debug.WriteLine($"Check response for: { ScenarioLabel} expecting { resultExpectation} to match result { result }");
            checker.CheckResponse(resultExpectation);
        }