Example #1
0
        public void ToscanaValidationException_With_Inner_Exception_Initialized_Properly()
        {
            var innerException             = new Exception("inner");
            var toscanaValidationException = new ToscaValidationException("message", innerException);

            toscanaValidationException.InnerException.Message.Should().Be("inner");
            toscanaValidationException.Message.Should().Be("message");
        }
Example #2
0
        public void ToscanaValidationException_With_Message_Should_Be_Binary_Serializable()
        {
            var toscanaValidationException = new ToscaValidationException("message");

            toscanaValidationException.Should().BeBinarySerializable();
        }