コード例 #1
0
        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()} ");
        }
コード例 #2
0
        public TestOutcome ResultStateToTestOutcome(string result)
        {
            var resultNode = XmlHelper.CreateXmlNode(result);

            return(TestConverter.GetTestOutcome(resultNode));
        }
コード例 #3
0
        public TestOutcome ResultStateToTestOutcome(string result)
        {
            var resultNode = new NUnitTestEventTestCase(XmlHelper.CreateXmlNode(result));

            return(TestConverter.GetTestOutcome(resultNode));
        }