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:
authorJb Evain <jbevain@gmail.com>2010-11-24 20:32:49 +0300
committerJb Evain <jbevain@gmail.com>2010-11-24 20:32:59 +0300
commit040767a80657314fafffbfc2c166bfa3dafab65c (patch)
treec31758f66138d8fc42e71f0b55ed10846400184f /mcs/tests/test-695.cs
parent93c081c5ee7360e36fc4b9723a04999f28e030bb (diff)
Port mcs/tests to cecil-light
Diffstat (limited to 'mcs/tests/test-695.cs')
-rw-r--r--mcs/tests/test-695.cs26
1 files changed, 13 insertions, 13 deletions
diff --git a/mcs/tests/test-695.cs b/mcs/tests/test-695.cs
index d572543a9a1..63d9da3ae8a 100644
--- a/mcs/tests/test-695.cs
+++ b/mcs/tests/test-695.cs
@@ -18,28 +18,28 @@ class Program
AssemblyName an;
AssemblyBuilder ab;
- assembly = AssemblyFactory.GetAssembly (Path.Combine (basedir, "test-695-2-lib.dll"));
- if (assembly.Name.Flags != AssemblyFlags.PublicKey)
+ assembly = AssemblyDefinition.ReadAssembly (Path.Combine (basedir, "test-695-2-lib.dll"));
+ if (assembly.Name.Attributes != AssemblyAttributes.PublicKey)
return 1;
a = Assembly.LoadFrom (Path.Combine (basedir, "test-695-2-lib.dll"));
if (a.GetName ().Flags != AssemblyNameFlags.PublicKey)
return 2;
- assembly = AssemblyFactory.GetAssembly (Path.Combine (basedir, "test-695-3-lib.dll"));
+ assembly = AssemblyDefinition.ReadAssembly (Path.Combine (basedir, "test-695-3-lib.dll"));
if (Environment.Version.Major >= 2) {
- if (assembly.Name.Flags != AssemblyFlags.SideBySideCompatible)
+ if (assembly.Name.Attributes != AssemblyAttributes.SideBySideCompatible)
return 3;
} else {
- if (assembly.Name.Flags != AssemblyFlags.PublicKey)
+ if (assembly.Name.Attributes != AssemblyAttributes.PublicKey)
return 3;
}
a = Assembly.LoadFrom (Path.Combine (basedir, "test-695-3-lib.dll"));
if (a.GetName ().Flags != AssemblyNameFlags.PublicKey)
return 4;
- assembly = AssemblyFactory.GetAssembly (Path.Combine (basedir, "test-695.exe"));
- if (assembly.Name.Flags != AssemblyFlags.SideBySideCompatible)
+ assembly = AssemblyDefinition.ReadAssembly (Path.Combine (basedir, "test-695.exe"));
+ if (assembly.Name.Attributes != AssemblyAttributes.SideBySideCompatible)
return 5;
a = Assembly.LoadFrom (Path.Combine (basedir, "test-695.exe"));
if (a.GetName ().Flags != AssemblyNameFlags.PublicKey)
@@ -54,8 +54,8 @@ class Program
AssemblyBuilderAccess.Save, basedir);
ab.Save ("test-695-4-lib.dll");
- assembly = AssemblyFactory.GetAssembly (Path.Combine (basedir, "test-695-4-lib.dll"));
- if (assembly.Name.Flags != (AssemblyFlags.PublicKey | AssemblyFlags.Retargetable))
+ assembly = AssemblyDefinition.ReadAssembly (Path.Combine (basedir, "test-695-4-lib.dll"));
+ if (assembly.Name.Attributes != (AssemblyAttributes.PublicKey | AssemblyAttributes.Retargetable))
return 7;
an = new AssemblyName ();
@@ -67,8 +67,8 @@ class Program
AssemblyBuilderAccess.Save, basedir);
ab.Save ("test-695-5-lib.dll");
- assembly = AssemblyFactory.GetAssembly (Path.Combine (basedir, "test-695-5-lib.dll"));
- if (assembly.Name.Flags != (AssemblyFlags.PublicKey | AssemblyFlags.Retargetable))
+ assembly = AssemblyDefinition.ReadAssembly (Path.Combine (basedir, "test-695-5-lib.dll"));
+ if (assembly.Name.Attributes != (AssemblyAttributes.PublicKey | AssemblyAttributes.Retargetable))
return 8;
a = Assembly.LoadFrom (Path.Combine (basedir, "test-695-5-lib.dll"));
if (a.GetName ().Flags != (AssemblyNameFlags.PublicKey | AssemblyNameFlags.Retargetable))
@@ -84,8 +84,8 @@ class Program
an.Flags = AssemblyNameFlags.None;
ab.Save ("test-695-6-lib.dll");
- assembly = AssemblyFactory.GetAssembly (Path.Combine (basedir, "test-695-6-lib.dll"));
- if (assembly.Name.Flags != (AssemblyFlags.PublicKey | AssemblyFlags.Retargetable))
+ assembly = AssemblyDefinition.ReadAssembly (Path.Combine (basedir, "test-695-6-lib.dll"));
+ if (assembly.Name.Attributes != (AssemblyAttributes.PublicKey | AssemblyAttributes.Retargetable))
return 10;
a = Assembly.LoadFrom (Path.Combine (basedir, "test-695-6-lib.dll"));
if (a.GetName ().Flags != (AssemblyNameFlags.PublicKey | AssemblyNameFlags.Retargetable))