// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; namespace Debugger.Tests { public class Thread_Tests { public static void Main() { System.Diagnostics.Debugger.Break(); // This line forces the internal thread object to be created System.Threading.Thread.CurrentThread.Priority = System.Threading.ThreadPriority.AboveNormal; System.Diagnostics.Debugger.Break(); System.Threading.Thread.CurrentThread.Name = "ThreadName"; System.Diagnostics.Debugger.Break(); } } } #if TEST_CODE namespace Debugger.Tests { public partial class DebuggerTests { [NUnit.Framework.Test] public void Thread_Tests() { StartTest(); ObjectDump("Thread", this.CurrentThread); process.Continue(); ObjectDump("Thread", this.CurrentThread); process.Continue(); ObjectDump("Thread", this.CurrentThread); EndTest(); } } } #endif #if EXPECTED_OUTPUT mscorlib.dll (No symbols) Thread_Tests.exe (Has symbols) Thread_Tests.cs:12,4-12,40 Thread_Tests.cs:15,4-15,40 Thread_Tests.cs:17,4-17,40 #endif // EXPECTED_OUTPUT