Exemplo n.º 1
0
        public void IsUnitTestAssertExceptionReturnsTrueIfExceptionIsAssertException()
        {
            var exception = new UTF.AssertInconclusiveException();

            UTF.UnitTestOutcome outcome          = UTF.UnitTestOutcome.Unknown;
            string exceptionMessage              = null;
            StackTraceInformation stackTraceInfo = null;

            Assert.IsTrue(exception.TryGetUnitTestAssertException(out outcome, out exceptionMessage, out stackTraceInfo));
        }
Exemplo n.º 2
0
        public void IsUnitTestAssertExceptionSetsOutcomeAsInconclusiveIfAssertInconclusiveException()
        {
            var exception = new UTF.AssertInconclusiveException("Dummy Message", new NotImplementedException("notImplementedException"));

            UTF.UnitTestOutcome outcome          = UTF.UnitTestOutcome.Unknown;
            string exceptionMessage              = null;
            StackTraceInformation stackTraceInfo = null;

            exception.TryGetUnitTestAssertException(out outcome, out exceptionMessage, out stackTraceInfo);

            Assert.AreEqual(UTF.UnitTestOutcome.Inconclusive, outcome);
            Assert.AreEqual("Dummy Message", exceptionMessage);
        }