System.IO.Tests.ErrorEventArgsTests.ErrorEventArgs_ctor C# (CSharp) Method

ErrorEventArgs_ctor() private method

private ErrorEventArgs_ctor ( ) : void
return void
        public void ErrorEventArgs_ctor()
        {
            Exception exception = new Exception();

            ErrorEventArgs args = new ErrorEventArgs(exception);

            Assert.Equal(exception, args.GetException());

            // Make sure method is consistent.
            Assert.Equal(exception, args.GetException());
        }