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); }
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); }