6 static void MissingImage ()
8 Type good = System.Type.GetType("System.Nullable`1[[System.Int32, mscorlib]]");
9 Type bad = System.Type.GetType("System.Nullable`1[[System.Int32, mscorlibBAD]]");
11 if (good.Assembly.FullName.Split (',') [0] != "mscorlib")
12 throw new Exception ("Wrong assembly name");
15 throw new Exception ("Should not have loaded type");
18 static void ProbeCorlib ()
20 Type good = System.Type.GetType("System.Nullable`1[[System.Int32, mscorlib]]");
21 Type bad = System.Type.GetType("System.Nullable`1[[System.IO.Pipes.PipeOptions, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]");
23 if (good.Assembly.FullName.Split (',') [0] != "mscorlib")
24 throw new Exception ("Wrong assembly name");
26 if (good == null || bad == null)
27 throw new Exception ("Missing image did not probe corlib");