[msvc] Update csproj files
[mono.git] / mono / tests / bug-30085.cs
1 using System;
2
3 class Program
4 {
5
6         static void MissingImage ()
7         {
8                 Type good = System.Type.GetType("System.Nullable`1[[System.Int32, mscorlib]]");
9                 Type bad = System.Type.GetType("System.Nullable`1[[System.Int32, mscorlibBAD]]");
10
11                 if (good.Assembly.FullName.Split (',') [0] != "mscorlib")
12                         throw new Exception ("Wrong assembly name");
13
14                 if (bad != null)
15                         throw new Exception ("Should not have loaded type");
16         }
17
18         static void ProbeCorlib ()
19         {
20                 Type good = System.Type.GetType("System.Nullable`1[[System.Int32, mscorlib]]"); 
21                 Type bad = System.Type.GetType("System.Nullable`1[[System.IO.MemoryMappedFiles.MemoryMappedFile, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]");
22
23                 if (good.Assembly.FullName.Split (',') [0] != "mscorlib")
24                         throw new Exception ("Wrong assembly name");
25
26                 if (good == null || bad == null)
27                         throw new Exception ("Missing image did not probe corlib");
28         }
29
30         static void Main()
31         {
32                 MissingImage ();
33                 ProbeCorlib ();
34         }
35 }