TestResult CreateTestResultFromExpectation(IExpectation expectation) { var result = new TestResult(new TestName { Name = expectation.Message }); if (expectation.IsFail) result.Failure(expectation.ToString(), ""); else if (expectation.IsPass) result.Success(); else if (expectation.IsPending) result.Ignore(expectation.ToString(), ""); return result; }
TestResult CreateTestResultFromExpectation(IExpectation expectation) { var result = new TestResult(new TestName { Name = expectation.Message }); if (expectation.IsFail) { result.Failure(expectation.ToString(), ""); } else if (expectation.IsPass) { result.Success(); } else if (expectation.IsPending) { result.Ignore(expectation.ToString(), ""); } return(result); }