public void UnhandledErrorExceptionTestWithMessageAndInnerException() { var fixture = new UnhandledErrorException("We are terribly sorry but a unhandled error occured.", new Exception("Inner Exception added.")); Assert.Equal(fixture.Message, "We are terribly sorry but a unhandled error occured."); Assert.Equal(fixture.InnerException?.Message, "Inner Exception added."); }
public void UnhandledErrorExceptionTestWithMessage() { var fixture = new UnhandledErrorException("We are terribly sorry but a unhandled error occured."); Assert.Equal(fixture.Message, "We are terribly sorry but a unhandled error occured."); }
public void UnhandledErrorExceptionTest() { var fixture = new UnhandledErrorException(); Assert.Equal(fixture.Message, "Exception of type 'ReactiveUI.UnhandledErrorException' was thrown."); }