// // // // // $Revision$ // using System; namespace Debugger.Tests.TestPrograms { public class Breakpoint { public static void Main() { System.Diagnostics.Debugger.Break(); System.Diagnostics.Debug.WriteLine("Mark 1"); System.Diagnostics.Debug.WriteLine("Mark 2"); // Breakpoint System.Diagnostics.Debugger.Break(); } } } #if TEST_CODE namespace Debugger.Tests { using NUnit.Framework; public partial class DebuggerTests { [NUnit.Framework.Test] public void Breakpoint() { Breakpoint breakpoint = debugger.AddBreakpoint(@"F:\SharpDevelopTrunk\src\AddIns\Misc\Debugger\Debugger.Tests\Project\Src\TestPrograms\Breakpoint.cs", 18); StartTest("Breakpoint.cs"); Assert.IsTrue(breakpoint.HadBeenSet); ObjectDump(breakpoint); process.Continue(); process.Continue(); process.AsyncContinue(); process.WaitForExit(); ObjectDump(breakpoint); EndTest(); } } } #endif #if EXPECTED_OUTPUT mscorlib.dll Breakpoint.exe System.dll Break True True Start=18,0 End=18,0 System.Configuration.dll System.Xml.dll Mark 1\r\n Breakpoint Mark 2\r\n Break True False Start=18,0 End=18,0 #endif // EXPECTED_OUTPUT