Remove disabled tests for Marshal.IsComObject(null) (dotnet/coreclr#12359)
authorHugh Bellamy <hughbellars@gmail.com>
Wed, 28 Jun 2017 14:59:15 +0000 (21:59 +0700)
committerDan Moseley <danmose@microsoft.com>
Wed, 28 Jun 2017 14:59:15 +0000 (07:59 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/f8a084647feb9b7223c44cd51710a6ad47e6de11

src/coreclr/tests/src/Interop/MarshalAPI/Miscellaneous/MarshalClassTests.cs

index b184020..4c4396c 100644 (file)
@@ -490,30 +490,6 @@ class MarshalClassTests
         }
 
         Console.WriteLine("DONE testing Copy.");
-        
-#if ISSUE_6605
-        //////////////////////////////////////////////////////////////
-        //IsComObject
-        /////////////////////////////////////////////////////////////
-        Console.WriteLine("\nTesting IsComObject...");
-        Console.WriteLine("\n\tPassing Object = null ");
-        try
-        {
-            Marshal.IsComObject(null);
-            retVal = 0;
-            Console.WriteLine("\t\tNO EXCEPTION THROWN! FAILED!");
-        }
-        catch (ArgumentNullException ane)
-        {
-            Console.WriteLine("\t\tCaught Expected Exception:\n\t\t\t" + ane.ToString());
-        }
-        catch (Exception e)
-        {
-            retVal = 0;
-            Console.WriteLine("\t\tUNEXPECTED EXCEPTION:\n\t\t\t" + e.ToString());
-        }
-#endif
-        Console.WriteLine("DONE testing IsComObject.");
 
         return retVal;
     }