Arc.Unit.Tests.Infrastructure.Validation.ValidationExceptionTests.Should_have_constructor_with_error_message_and_inner_exception C# (CSharp) Method

Should_have_constructor_with_error_message_and_inner_exception() private method

        public void Should_have_constructor_with_error_message_and_inner_exception()
        {
            var expectedMessage = "Message";
            var expectedInnerException = new Exception("Inner Message");

            var target = new ValidationException(expectedMessage, expectedInnerException);

            Assert.That(target, Is.Not.Null);
            Assert.That(target.Message, Is.EqualTo(expectedMessage));
            Assert.That(target.InnerException, Is.SameAs(expectedInnerException));
        }