Author: gonzalo
Date: 2005-04-30 19:26:42 -0400 (Sat, 30 Apr 2005)
New Revision: 43834

Added:
   trunk/mcs/class/corlib/Test/System.Threading/AutoResetEventTest.cs
Modified:
   trunk/mcs/class/corlib/Test/System.Threading/ChangeLog
Log:
2005-04-30 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * AutoResetEventTest.cs: test for AutoResetEvent.



Added: trunk/mcs/class/corlib/Test/System.Threading/AutoResetEventTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Threading/AutoResetEventTest.cs  
2005-04-30 23:20:42 UTC (rev 43833)
+++ trunk/mcs/class/corlib/Test/System.Threading/AutoResetEventTest.cs  
2005-04-30 23:26:42 UTC (rev 43834)
@@ -0,0 +1,30 @@
+//
+// AutoResetEventTest.cs - NUnit test cases for System.Threading.AutoResetEvent
+//
+// 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 AutoResetEventTest : Assertion {
+               [Test]
+               public void MultipleSet ()
+               {
+                       AutoResetEvent evt = new AutoResetEvent (true);
+                       Assertion.AssertEquals ("#01", true, evt.WaitOne (1000, 
false));
+                       evt.Set ();
+                       evt.Set ();
+                       Assertion.AssertEquals ("#02", true, evt.WaitOne (1000, 
false));
+                       Assertion.AssertEquals ("#03", false, evt.WaitOne 
(1000, false));
+               }
+       }
+}
+

Modified: trunk/mcs/class/corlib/Test/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Threading/ChangeLog      2005-04-30 
23:20:42 UTC (rev 43833)
+++ trunk/mcs/class/corlib/Test/System.Threading/ChangeLog      2005-04-30 
23:26:42 UTC (rev 43834)
@@ -1,3 +1,7 @@
+2005-04-30 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * AutoResetEventTest.cs: test for AutoResetEvent.
+
 2005-03-28  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * CompressedStackCas.cs: New. CAS unit tests for CompressedStack.

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

Reply via email to