In class/corlib/:
* corlib_test.dll.sources: Add System.Threading/SpinLockTests.cs
In class/corlib/System.Threading/:
* SpinLock.cs: Update to use ticket spinlock algorithm
In class/corlib/Test/System.Threading/:
* SpinLockTests.cs: Added unit tests for SpinLock
svn path=/trunk/mcs/; revision=153273
In class/corlib/:
* corlib.dll.sources: Add System.Threading.Tasks/SimpleConcurrentBag.cs
and System.Threading.Tasks/UnobservedTaskExceptionEventArgs.cs
In class/corlib/System.Collections.Concurrent/:
* ConcurrentDictionary.cs:
* ConcurrentQueue.cs:
* ConcurrentStack.cs:
* Partitioner.cs: Port to .NET 4 beta 2 API
* ConcurrentSkipList.cs: Use Monitor for locking
In class/corlib/System.Threading.Tasks/:
* Future.cs:
* Parallel.cs:
* ParallelLoopState.cs:
* Task.cs:
* TaskCompletionSource.cs:
* TaskContinuationOptions.cs:
* TaskCreationOptions.cs:
* TaskFactory.cs:
* TaskScheduler.cs:
* UnobservedTaskExceptionEventArgs.cs: Port to .NET 4 beta 2 API
* SimpleConcurrentBag.cs: Add a simpler implementation of ConcurrentBag
for use with parallel loops as ConcurrentBag was moved to System
In class/corlib/System.Threading/:
* CancellationToken.cs:
* CancellationTokenSource.cs:
* ManualResetEventSlim.cs:
* SemaphoreSlim.cs:
* SpinLock.cs:
* SpinWait.cs:
* ThreadLocal.cs: Port to .NET 4 beta 2 API
In class/corlib/System/:
* AggregateException.cs:
* OperationCanceledException.cs: Port to .NET 4 beta 2 API
In class/corlib/Test/System.Collections.Concurrent/:
* CollectionStressTestHelper.cs:
* ConcurrentBagTests.cs:
* ConcurrentDictionaryTests.cs:
* ConcurrentQueueTests.cs:
* ConcurrentSkipListTests.cs:
* ConcurrentStackTests.cs:
* ParallelConcurrentQueueTests.cs:
* ParallelConcurrentStackTests.cs: Update namespaces and tested methods
In class/corlib/Test/System.Threading.Tasks/:
* FutureTests.cs:
* ParallelTestHelper.cs:
* ParallelTests.cs:
* SnziTests.cs:
* TaskCompletionSourceTests.cs:
* TaskTest.cs: Update namespace and tested methods
In class/corlib/Test/System.Threading/:
* CancellationTokenTests.cs:
* LazyInitTests.cs:
* ThreadLazyTests.cs: Update namespace and tested methods
svn path=/trunk/mcs/; revision=150716
In class/corlib/System.Threading/:
* Parallel.cs: Added fix for Bug #536919.
In class/corlib/Test/System.Threading/:
* ParallelTests.cs: Added unit test for Bug #536919, cleaned up.
svn path=/trunk/mcs/; revision=145203
2009-10-26 Sebastien Pouliot <[email protected]>
* InterlockedTest.cs: Add test case for generic methods
ComapreExchange and Exchange
In System:
2009-10-26 Sebastien Pouliot <[email protected]>
* TypeTest.cs: New. Add test cases for IsInstanceOfType
svn path=/trunk/mcs/; revision=144840
2009-10-22 Sebastien Pouliot <[email protected]>
* EventWaitHandle.cs: Add validation on the EventResetMode
parameter used in the constructors
In .:
2009-10-22 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Add System/WeakReferenceTest and
System.Threading/EventWaitHandleTest.cs
In Test/System.Threading:
2009-10-22 Sebastien Pouliot <[email protected]>
* EventWaitHandleTest.cs: New. Test case for EventResetMode
validation
In Test/System:
2009-10-22 Sebastien Pouliot <[email protected]>
* WeakReferenceTest.cs: New. Basic test cases
svn path=/trunk/mcs/; revision=144681
2009-10-22 Sebastien Pouliot <[email protected]>
* Monitor.cs: Fix validations for TryEnter and Wait. Reduce
duplicated code between overloads.
In Test/System.Threading:
2009-10-22 Sebastien Pouliot <[email protected]>
* MonitorTest.cs: Mark existing tests as "NotWorking" since they
fail in MS FX2 (maybe they worked in 1.x?). Add more test cases
to validate the TryEnter and Wait overloaded methods.
svn path=/trunk/mcs/; revision=144627
2009-10-21 Sebastien Pouliot <[email protected]>
* WaitHandle.cs: Add missing validations for 'millisecondsTimeout'
in Wait[One|Any|All]. Also call the overloaded (bool) methods for
WaitAll to reduce code duplication.
In .:
2009-10-21 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Add System.Threading/WaitHandleTest.cs
In Test/System.Threading:
2009-10-21 Sebastien Pouliot <[email protected]>
* WaitHandleTest.cs: New. Add test cases for Wait[One|All|Any]
methods overloads (at least the one present in Silverlight 2)
svn path=/trunk/mcs/; revision=144529
2009-10-20 Sebastien Pouliot <[email protected]>
* Timer.cs: Always call Init from every constructors to avoid
duplicate checks. Fix validations on different dueTime and period
(ctor and Change methods). Seal private TimerComparer class and
avoid multiple (identical) casts in its Compare method. Seal
private Scheduler class.
In Test/System.Threading:
2009-10-20 Sebastien Pouliot <[email protected]>
* TimerTest.cs: Add more validation tests
svn path=/trunk/mcs/; revision=144466
* Update unit tests
* Moved BlockingCollection and Barrier in System.dll (with assorted fixes)
* Fix wrong signature in TaskFactory<T>
* Update .dll.sources files
* Move AggregateException in System namespace
* Remove While in Parallel
* Correct Wait(CancellationToken) signature in CountdownEvent
* update corlib.dll.sources
svn path=/trunk/mcs/; revision=139727
test. Numbered asserts. Minor code formatting updates. Removed obsolete
comment on class.
* ThreadTest.cs: Use Assert.Fail for tests that fail on the Mono
runtime only when these tests are being executed on the Mono runtime.
svn path=/trunk/mcs/; revision=105788
* Thread.cs: Throw ThreadStateException when retrieving ApartmentState
or IsBackground if thread is stopped. Fixes bug #81658.
2007-08-10 Gert Driesen <[email protected]>
* ThreadTest.cs: Enabled test for bug #81658.
svn path=/trunk/mcs/; revision=83806
new SafeWaitHandle on the previous one. Use meaningful names for
tests. Avoid unref warning. Removed usage of deprecated Assertion
class. Spaces to tabs.
svn path=/trunk/mcs/; revision=82427
break these by changing the CurrentCulture or CurrentUICulture.
Instead I've added a standalone test for this (in the gert module).
svn path=/trunk/mcs/; revision=81595
* FileSystemInfoTest.cs: Restore original CurrentCulture on teardown.
Removed stray tabs. Code formatting.
* FileTest.cs: Restore original CurrentCulture on teardown. Removed
stray tabs. Changes spaces to tabs.
* ThreadTest.cs: Added tests for bug #81930.
* CultureInfoTest.cs: Added exception tests when invoking NumberFormat
or DateTimeFormat on a neutral culture. Added tests for bug #81930.
No longer derive from deprecated Assertion class. Added tests for
GetCultureInfo (2.0).
* ArrayTest.cs: Added test for bug #81941.
* ByteTest.cs: Restore original CurrentCulture in teardown.
* DecimalFormatterTest.cs: Restore original CurrentCulture in teardown.
Code formatting.
* DecimalTest.cs: Code formatting.
* DoubleFormatterTest.cs: Test relies on specific culture, so set it
up here. This worked before since the CurrentCulture was set in another
TestFixture, and the original one was not restored.
* FloatingPointFormatterTest.cs: Same.
* NumberFormatterTest.cs: Same. Removed stray tabs and fixes code
formatting.
* SingleFormatterTest.cs: Restore original culture on teardown. Code
formatting.
* SingleTest.cs: Same.
* StringComparerTest.cs: Restore original culture on teardown.
svn path=/trunk/mcs/; revision=80626
* ExecutionContextTest.cs: Changed Run test to execute only under
CAS until bug #78306 (CompressedStack) is fixed.
svn path=/trunk/mcs/; revision=61695