Merge pull request #2831 from razzfazz/fix_dllimport
[mono.git] / mcs / tests / test-892.cs
1 using System.Reflection;
2 using System.Diagnostics;
3 using System;
4
5 [assembly: AssemblyVersion ("2011.04.0.0")]
6 [assembly: AssemblyFileVersion ("2011.02.0.0")]
7
8 class X
9 {
10         public static int Main ()
11         {
12                 Assembly executingAssembly = Assembly.GetAssembly (typeof(X));
13                 FileVersionInfo fvi = FileVersionInfo.GetVersionInfo (executingAssembly.Location);
14                 if (fvi.FileVersion != "2011.02.0.0")
15                         return 1;
16
17                 if (fvi.ProductVersion != "2011.02.0.0")
18                         return 2;
19
20                 return 0;
21         }
22 }