Пример #1
0
        public static void MessageConstructor()
        {
            string message = "MessageConstructor";
            UnreachableException unreachableException = new UnreachableException(message);

            Assert.Equal(message, unreachableException.Message);
        }
Пример #2
0
        public static void MessageInnerExceptionConstructor()
        {
            string               message              = "MessageConstructor";
            Exception            innerException       = new Exception();
            UnreachableException unreachableException = new UnreachableException();

            Assert.Equal(message, unreachableException.Message);
            Assert.Same(innerException, unreachableException.InnerException);
        }
Пример #3
0
        public static void DefaultConstructor()
        {
            UnreachableException unreachableException = new UnreachableException();

            Assert.NotNull(unreachableException.Message);
        }