Author: gonzalo
Date: 2005-05-06 01:01:29 -0400 (Fri, 06 May 2005)
New Revision: 44108

Added:
   trunk/mcs/class/corlib/Test/System.Threading/MonitorTest.cs
Modified:
   trunk/mcs/class/corlib/Test/System.Threading/ChangeLog
   trunk/mcs/class/corlib/corlib_test.dll.sources
Log:
2005-05-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * MonitorTest.cs: a pair of tests for Monitor.



Modified: trunk/mcs/class/corlib/Test/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Threading/ChangeLog      2005-05-06 
04:55:54 UTC (rev 44107)
+++ trunk/mcs/class/corlib/Test/System.Threading/ChangeLog      2005-05-06 
05:01:29 UTC (rev 44108)
@@ -1,3 +1,7 @@
+2005-05-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * MonitorTest.cs: a pair of tests for Monitor.
+
 2005-04-30 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * AutoResetEventTest.cs: test for AutoResetEvent.

Added: trunk/mcs/class/corlib/Test/System.Threading/MonitorTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Threading/MonitorTest.cs 2005-05-06 
04:55:54 UTC (rev 44107)
+++ trunk/mcs/class/corlib/Test/System.Threading/MonitorTest.cs 2005-05-06 
05:01:29 UTC (rev 44108)
@@ -0,0 +1,37 @@
+//
+// MonitorTest.cs - NUnit test cases for System.Threading.Monitor
+//
+// Author:
+//     Gonzalo Paniagua Javier ([EMAIL PROTECTED])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+
+using NUnit.Framework;
+using System;
+using System.Threading;
+
+namespace MonoTests.System.Threading {
+
+       [TestFixture]
+       public class MonitorTest : Assertion {
+
+               [Test]
+               public void ExitNoEnter ()
+               {
+                       object o = new object ();
+                       Monitor.Exit (o);
+               }
+
+               [Test]
+               public void OneEnterSeveralExits ()
+               {
+                       object o = new object ();
+                       Monitor.Enter (o);
+                       Monitor.Exit (o);
+                       Monitor.Exit (o);
+                       Monitor.Exit (o);
+                       Monitor.Exit (o);
+               }
+       }
+}

Modified: trunk/mcs/class/corlib/corlib_test.dll.sources
===================================================================
--- trunk/mcs/class/corlib/corlib_test.dll.sources      2005-05-06 04:55:54 UTC 
(rev 44107)
+++ trunk/mcs/class/corlib/corlib_test.dll.sources      2005-05-06 05:01:29 UTC 
(rev 44108)
@@ -266,6 +266,7 @@
 System.Threading/AutoResetEventTest.cs
 System.Threading/CompressedStackTest.cs
 System.Threading/ExecutionContextTest.cs
+System.Threading/MonitorTest.cs
 System.Threading/MutexTest.cs
 System.Threading/ThreadTest.cs
 System.Threading/ReaderWriterLockTest.cs

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to