public void IsUnitTestAssertExceptionReturnsTrueIfExceptionIsAssertException() { var exception = new UTF.AssertInconclusiveException(); UTF.UnitTestOutcome outcome = UTF.UnitTestOutcome.Unknown; Assert.IsTrue(exception.TryGetUnitTestAssertException(out outcome, out var exceptionMessage, out var stackTraceInfo)); }
public void IsUnitTestAssertExceptionSetsOutcomeAsInconclusiveIfAssertInconclusiveException() { var exception = new UTF.AssertInconclusiveException("Dummy Message", new NotImplementedException("notImplementedException")); UTF.UnitTestOutcome outcome = UTF.UnitTestOutcome.Unknown; exception.TryGetUnitTestAssertException(out outcome, out var exceptionMessage, out var stackTraceInfo); Assert.AreEqual(UTF.UnitTestOutcome.Inconclusive, outcome); Assert.AreEqual("Dummy Message", exceptionMessage); }
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(outcome, UTF.UnitTestOutcome.Inconclusive); Assert.AreEqual(exceptionMessage, "Dummy Message"); }