New tests.
[mono.git] / mcs / class / corlib / System.Reflection / Assembly.cs
index 2442e925b960ebc00658853278a1db1651c7b668..d6068ba8cd30ad7165ee1c4e7d4d7256e7d086bd 100644 (file)
@@ -871,7 +871,7 @@ namespace System.Reflection {
 #if NET_4_0
                static Exception CreateNIE ()
                {
-                       return new NotSupportedException ("Derived classes must implement it");
+                       return new NotImplementedException ("Derived classes must implement it");
                }
 
                public virtual Type GetType (string name, bool throwOnError, bool ignoreCase)
@@ -894,6 +894,7 @@ namespace System.Reflection {
                        throw CreateNIE ();
                }
 
+               [MonoTODO ("Always returns the same as GetModules")]
                public virtual Module[] GetLoadedModules (bool getResourceModules)
                {
                        throw CreateNIE ();
@@ -916,6 +917,33 @@ namespace System.Reflection {
                public virtual bool GlobalAssemblyCache {
                        get { throw CreateNIE (); }
                }
+
+               public virtual bool IsDynamic {
+                       get { return false; }
+               }
+
+               public override int GetHashCode ()
+               {
+                       return base.GetHashCode ();
+               }
+
+               public static bool operator == (Assembly left, Assembly right)
+               {
+                       if ((object)left == (object)right)
+                               return true;
+                       if ((object)left == null ^ (object)right == null)
+                               return false;
+                       return left.Equals (right);
+               }
+
+               public static bool operator != (Assembly left, Assembly right)
+               {
+                       if ((object)left == (object)right)
+                               return false;
+                       if ((object)left == null ^ (object)right == null)
+                               return true;
+                       return !left.Equals (right);
+               }
 #endif
        }
 }