Пример #1
0
        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.");
        }
Пример #2
0
        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.");
        }
Пример #3
0
        public void UnhandledErrorExceptionTest()
        {
            var fixture = new UnhandledErrorException();

            Assert.Equal(fixture.Message, "Exception of type 'ReactiveUI.UnhandledErrorException' was thrown.");
        }