Inheritance: System.Exception
Example #1
0
        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));
        }
 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));
 }