System.IO.Tests.ErrorEventArgsTests.ErrorEventArgs_ctor C# (CSharp) Méthode

ErrorEventArgs_ctor() private méthode

private ErrorEventArgs_ctor ( ) : void
Résultat 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());
        }