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]]");
22 string pubKeyToken = "7cec85d7bea7798e";
24 string pubKeyToken = "b77a5c561934e089";
26 string t = String.Format ("System.Nullable`1[[System.IO.MemoryMappedFiles.MemoryMappedFile, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken={0}]]", pubKeyToken);
27 Type bad = System.Type.GetType(t);
29 if (good.Assembly.FullName.Split (',') [0] != "mscorlib")
30 throw new Exception ("Wrong assembly name");
32 if (good == null || bad == null)
33 throw new Exception ("Missing image did not probe corlib");