* ThreadTest.cs: Added regression test for #76332 when an IPrincipal
instance should be copied in any new thread created.
svn path=/trunk/mcs/; revision=51333
* Dictionary.cs (GetKeys, GetValues): Remove.
(SetThreshold): New function to calculate the resize threshold.
(CopyTo): Don't use foreach syntax.
(ContainsValue): Likewise. Use default equality comparer of the
value type.
(GetObjectData): Use CopyTo to copy into temporary array. Don't
save redundant _usedSlots and _threshold.
(OnDeserialization): Rewrite.
(ICollection<>.CopyTo): Forward to CopyTo.
(Enumerator._nextIndex): Rename to from _index.
(Enumerator._next, Enumerator.FixNext): Remove.
(Enumerator.Current): Rewrite to avoid need for _next.
(Enumerator.IEnumerator.Reset): Update.
(KeyCollection): Is also IEnumerable<TKey> and IEnumerable.
Update methods to conform to standard.
(KeyCollection.GetEnumerator): Restore. Return the correct type.
(KeyCollection.Enumerator): Rename from KeyEnumerator. Simple
wrapper that forwards to Dictionary<,>.Enumerator.
(ValueCollection): Likewise.
In Test/System.Collections.Generic:
* DictionaryTest.cs (SliceCollectionsEnumeratorTest): New test
based on #75053.
svn path=/trunk/mcs/; revision=46087
* ThreadTest.cs: sanitize waiting for a thread that might be already
done. Added test for Thread.Start called after thread.Abort, which used
to segfault.
svn path=/trunk/mcs/; revision=45464
* MutexTest.cs: No need to ignore these tests now
* ThreadTest.cs: You can't Start() a thread that's been aborted.
Improve state tests.
svn path=/trunk/mcs/; revision=30108
* ThreadTest.cs: Un-ignore some tests that seem to run pretty well
now. Getting one failure from these, but at least they run without
crashing, or throwing some nasty _wapi exception thingy.
svn path=/trunk/mcs/; revision=26429
* ThreadTest.cs: Removed [Ignore] on WindowsPrincipal test. Adjusted
CurrentPrincipal tests to work on both Windows and Linux.
svn path=/trunk/mcs/; revision=25400
* ThreadTest.cs: Removed Ignore attributes from
CurrentPrincipal_PrincipalPolicy_NoPrincipal and
CurrentPrincipal_PrincipalPolicy_UnauthenticatedPrincipal
Now that bug 54041 is fixed, and they wont livelock.
svn path=/trunk/mcs/; revision=24321