diff --git a/Examples/test-suite/csharp/csharp_exceptions_runme.cs b/Examples/test-suite/csharp/csharp_exceptions_runme.cs index 1c23a809f..add2e0853 100644 --- a/Examples/test-suite/csharp/csharp_exceptions_runme.cs +++ b/Examples/test-suite/csharp/csharp_exceptions_runme.cs @@ -54,12 +54,12 @@ public class runme try { csharp_exceptions.NullReference(null); throw new Exception("NullReference not working"); - } catch (NullReferenceException) { + } catch (ArgumentNullException) { } try { csharp_exceptions.NullValue(null); throw new Exception("NullValue not working"); - } catch (NullReferenceException) { + } catch (ArgumentNullException) { } // enums @@ -80,12 +80,12 @@ public class runme try { csharp_exceptions.NullStdStringValue(null); throw new Exception("NullStdStringValue not working"); - } catch (NullReferenceException) { + } catch (ArgumentNullException) { } try { csharp_exceptions.NullStdStringReference(null); throw new Exception("NullStdStringReference not working"); - } catch (NullReferenceException) { + } catch (ArgumentNullException) { } try { csharp_exceptions.ExceptionSpecificationStdStringValue(); @@ -114,7 +114,7 @@ public class runme try { new constructor(null); throw new Exception("constructor 1 not working"); - } catch (NullReferenceException) { + } catch (ArgumentNullException) { } try { new constructor(); @@ -278,7 +278,6 @@ public class runme Thread[] threads = new Thread[NUM_THREADS]; TestThread[] testThreads = new TestThread[NUM_THREADS]; // invoke the threads - Console.WriteLine("Thread tests"); for (int i=0; i