System.Tests.ExceptionDerivedTests.Exception_SerializeObjectState C# (CSharp) Method

Exception_SerializeObjectState() private method

private Exception_SerializeObjectState ( ) : void
return void
        public static void Exception_SerializeObjectState()
        {
            var excp = new ExceptionDerivedTests();
            Assert.Throws<PlatformNotSupportedException>( () => excp.SerializeObjectState += (exception, eventArgs) => eventArgs.AddSerializedState(null));
            Assert.Throws<PlatformNotSupportedException>( () => excp.SerializeObjectState -= (exception, eventArgs) => eventArgs.AddSerializedState(null));
        }
    }
ExceptionDerivedTests