src/GenFx.Tests/ValidationExceptionTest.cs
/// <summary>
/// Tests that the ctor intializes the state correctly.
/// </summary>
Tests that the ctor intializes the state correctly.
Tests that the ctor intializes the state correctly .
[Fact]
        public void ValidationException_Ctor()
        {
            ValidationException exception = new ValidationException();
            Assert.NotNull(exception.Message);
            string message = "test";
            exception = new ValidationException(message);
            Assert.Equal(message, exception.Message);
            Exception innerException = new ArgumentException();
            exception = new ValidationException(message, innerException);
            Assert.Equal(message, exception.Message);
            Assert.Same(innerException, exception.InnerException);
        }
[ Fact ] public void ValidationException_Ctor ( ) { ValidationException exception = new ValidationException ( ) ; Assert . NotNull ( exception . Message ) ; string message = " " ; exception = new ValidationException ( message ) ; Assert . Equal ( message , exception . Message ) ; Exception innerException = new ArgumentException ( ) ; exception = new ValidationException ( message , innerException ) ; Assert . Equal ( message , exception . Message ) ; Assert . Same ( innerException , exception . InnerException ) ; }
Tests that the ctor intializes the state correctly.
Tests that the ctor intializes the state correctly .