//
using System;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Runtime.Serialization.Formatters.Binary;
using NUnit.Framework;
Assert.IsTrue (rmhB1 != rmhA1, "#B6");
}
#endif
+
+ [Test]
+ [ExpectedException (typeof (SerializationException))]
+ public void Serialization_Of_Empty_Handle ()
+ {
+ RuntimeMethodHandle handle = new RuntimeMethodHandle ();
+ new BinaryFormatter ().Serialize (Stream.Null, handle);
+ }
}
}