Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-04-27 21:24:23 +0400
committerMarek Safar <marek.safar@gmail.com>2010-04-27 21:24:23 +0400
commit0f9bd7947c164013cbe88325f39bd41df5bb29b8 (patch)
treec113c2030be0abd8e953cb219f253251c901935d /mcs/tests/test-607.cs
parent4f81102f1c12e4f4397cd250ff0b521c92fc75af (diff)
New tests.
svn path=/trunk/mcs/; revision=156196
Diffstat (limited to 'mcs/tests/test-607.cs')
-rw-r--r--mcs/tests/test-607.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/mcs/tests/test-607.cs b/mcs/tests/test-607.cs
index 373041f8cb9..5ddd4737093 100644
--- a/mcs/tests/test-607.cs
+++ b/mcs/tests/test-607.cs
@@ -1,15 +1,29 @@
using System;
using System.Reflection;
+using System.Configuration.Assemblies;
-[assembly: AssemblyVersion ("7")]
+[assembly: AssemblyVersion ("7.0")]
+[assembly: AssemblyAlgorithmId (AssemblyHashAlgorithm.MD5)]
+[assembly: AssemblyFlagsAttribute(AssemblyNameFlags.EnableJITcompileOptimizer | AssemblyNameFlags.Retargetable)]
class Program
{
static int Main ()
{
Assembly a = Assembly.GetExecutingAssembly ();
+ var an = a.GetName ();
+ Console.WriteLine (an.Version);
if (a.GetName ().Version != new Version (7, 0, 0, 0))
return 1;
+
+ if (an.HashAlgorithm != AssemblyHashAlgorithm.MD5)
+ return 2;
+
+ Console.WriteLine (an.Flags);
+ if (an.Flags != (AssemblyNameFlags.PublicKey | AssemblyNameFlags.EnableJITcompileOptimizer | AssemblyNameFlags.Retargetable))
+ return 3;
+
+ Console.WriteLine ("ok");
return 0;
}
}