//
using System;
+using System.Globalization;
using System.Security.Principal;
using System.Threading;
Assert.IsTrue (n < 200, "Timeout while waiting for abort");
CheckIsNotRunning ("t6", t);
- }
+ }
void CheckIsRunning (string s, Thread t)
{
}
[Test] // bug #81720
- [Category ("NotWorking")]
public void IsBackGround ()
{
Thread t1 = new Thread (new ThreadStart (Start));
t1.Start ();
t1.Join ();
Assert.AreEqual (ThreadState.Stopped, t1.ThreadState, "#A3");
+
try {
bool isBackGround = t1.IsBackground;
Assert.Fail ("#A4: " + isBackGround.ToString ());
t2.Start ();
t2.Join ();
Assert.AreEqual (ThreadState.Stopped, t2.ThreadState, "#B4");
+
try {
bool isBackGround = t2.IsBackground;
Assert.Fail ("#B5: " + isBackGround.ToString ());
}
[Test] // bug #81658
- [Category ("NotWorking")]
public void ApartmentState_StoppedThread ()
{
Thread t1 = new Thread (new ThreadStart (Start));
Assert.IsTrue (exception_occured, "Thread1 Started Invalid Exception Occured");
}
}
-
+
public class TestUtil
{
public static void WaitForNotAlive (Thread t, string s)