System.Tests.ExceptionDerivedTests.Exception_SerializeObjectState C# (CSharp) 메소드

Exception_SerializeObjectState() 개인적인 메소드

private Exception_SerializeObjectState ( ) : void
리턴 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