public void ResultStateToTestOutcome(string result, TestOutcome expected) { var resultNode = new NUnitTestEventTestCase(XmlHelper.CreateXmlNode(result)); var logger = Substitute.For <ITestLogger>(); var settings = Substitute.For <IAdapterSettings>(); settings.MapWarningTo.Returns(TestOutcome.Skipped); var converter = new TestConverter(logger, "whatever", settings); var res = converter.GetTestOutcome(resultNode); Assert.That(res, Is.EqualTo(expected), $"In: {result}, out: {res.ToString()} expected: {expected.ToString()} "); }
public TestOutcome ResultStateToTestOutcome(string result) { var resultNode = XmlHelper.CreateXmlNode(result); return(TestConverter.GetTestOutcome(resultNode)); }
public TestOutcome ResultStateToTestOutcome(string result) { var resultNode = new NUnitTestEventTestCase(XmlHelper.CreateXmlNode(result)); return(TestConverter.GetTestOutcome(resultNode)); }