public void Constructor2 ()
{
BadImageFormatException bif = new BadImageFormatException ("message");
#if NET_2_0
Assert.IsNotNull (bif.Data, "#1");
#endif
Assert.IsNull (bif.FileName, "#2");
Assert.IsNull (bif.InnerException, "#3");
Assert.IsNotNull (bif.Message, "#4");
Assert.AreEqual ("message", bif.Message, "#5");
Assert.IsNull (bif.FusionLog, "#6");
#if TARGET_JVM // ToString always has a stack trace under TARGET_JVM
Assert.IsTrue (bif.ToString ().StartsWith (bif.GetType ().FullName + ": message"), "#7");
#else
Assert.AreEqual (bif.GetType ().FullName + ": message",
bif.ToString (), "#7");
#endif // TARGET_JVM
}