Assert.IsNotNull (refs [0].CultureInfo, "#D2:CultureInfo");
Assert.IsNull (refs [0].EscapedCodeBase, "#D2:EscapedCodeBase");
Assert.AreEqual (AssemblyNameFlags.None, refs [0].Flags, "#D2:Flags");
- Assert.AreEqual (Consts.AssemblyCorlib, refs [0].FullName, "#D2:FullName");
+ Assert.AreEqual (typeof (object).FullName, refs [0].FullName, "#D2:FullName");
Assert.AreEqual (AssemblyHashAlgorithm.SHA1, refs [0].HashAlgorithm, "#D2:HashAlgorithm");
Assert.IsNull (refs [0].KeyPair, "#D2:KeyPair");
Assert.AreEqual ("mscorlib", refs [0].Name, "#D2:Name");
#if NET_2_0
Assert.AreEqual (ProcessorArchitecture.None, refs [0].ProcessorArchitecture, "#D2:PA");
#endif
- Assert.AreEqual (new Version (Consts.FxVersion), refs [0].Version, "#D2:Version");
+
+ string FxVersion;
+#if MOBILE
+ FxVersion = "2.0.5.0;";
+#elif NET_4_0
+ FxVersion = "4.0.0.0;";
+#else
+ FxVersion = "2.0.0.0;";
+#endif
+ Assert.AreEqual (new Version (FxVersion), refs [0].Version, "#D2:Version");
Assert.AreEqual (AssemblyVersionCompatibility.SameMachine,
refs [0].VersionCompatibility, "#D2:VersionCompatibility");
Assert.IsNull (refs [0].GetPublicKey (), "#D2:GetPublicKey");
{
an = typeof(int).Assembly.GetName ();
Assert.IsNotNull (an.FullName, "#1");
- Assert.AreEqual (Consts.AssemblyCorlib, an.FullName, "#2");
+
+ string AssemblyCorlib;
+#if MOBILE
+ AssemblyCorlib = "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e";
+#elif NET_4_0
+ AssemblyCorlib = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
+#else
+ AssemblyCorlib = "mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
+#endif
+ Assert.AreEqual (AssemblyCorlib, an.FullName, "#2");
}
[Test]
Assert.AreEqual (typeof (MissingMethodException), ex.GetType (), "#2");
Assert.IsNull (ex.InnerException, "#3");
Assert.IsNotNull (ex.Message, "#4");
- Assert.IsTrue (ex.Message.IndexOf (Consts.AssemblyCorlib) != -1, "#5");
+ Assert.IsTrue (ex.Message.IndexOf (typeof (object).Assembly.FullName) != -1, "#5");
}
}
Assert.AreEqual (typeof (MissingMethodException), ex.GetType (), "#2");
Assert.IsNull (ex.InnerException, "#3");
Assert.IsNotNull (ex.Message, "#4");
- Assert.IsTrue (ex.Message.IndexOf (Consts.AssemblyCorlib) != -1, "#5");
+ Assert.IsTrue (ex.Message.IndexOf (typeof (object).Assembly.FullName) != -1, "#5");
}
}
Assert.AreEqual (typeof (MissingMethodException), ex.GetType (), "#2");
Assert.IsNull (ex.InnerException, "#3");
Assert.IsNotNull (ex.Message, "#4");
- Assert.IsTrue (ex.Message.IndexOf (Consts.AssemblyCorlib) != -1, "#5");
+ Assert.IsTrue (ex.Message.IndexOf (typeof (object).Assembly.FullName) != -1, "#5");
}
}
Assert.AreEqual (typeof (MissingMethodException), ex.GetType (), "#2");
Assert.IsNull (ex.InnerException, "#3");
Assert.IsNotNull (ex.Message, "#4");
- Assert.IsTrue (ex.Message.IndexOf (Consts.AssemblyCorlib) != -1, "#5");
+ Assert.IsTrue (ex.Message.IndexOf (typeof (object).Assembly.FullName) != -1, "#5");
}
}
#endif
-../../../build/common/Consts.cs
Microsoft.Win32/RegistryKeyTest.cs
Mono/DataConvertTest.cs
../Mono/DataConverter.cs