1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
6
namespace Debugger.Tests
8
public class Breakpoint_Tests
10
public static void Main()
12
System.Diagnostics.Debugger.Break();
13
System.Diagnostics.Debug.WriteLine("Main 1");
14
System.Diagnostics.Debug.WriteLine("Main 2"); // Breakpoint
16
System.Diagnostics.Debug.WriteLine("Main 3");
17
System.Diagnostics.Debugger.Break();
23
namespace Debugger.Tests {
24
using NUnit.Framework;
26
public partial class DebuggerTests
28
[NUnit.Framework.Test]
29
public void Breakpoint_Tests()
31
Breakpoint breakpoint1 = debugger.Breakpoints.Add(@"Breakpoint_Tests.cs", 14);
32
Breakpoint breakpoint2 = debugger.Breakpoints.Add(@"Breakpoint_Tests.cs", 15);
36
Assert.IsTrue(breakpoint1.IsSet);
37
Assert.IsTrue(breakpoint2.IsSet);
38
ObjectDump("Breakpoint1", breakpoint1);
39
ObjectDump("Breakpoint2", breakpoint2);
44
process.AsyncContinue();
45
process.WaitForExit();
46
ObjectDump("Breakpoint1", breakpoint1);
47
ObjectDump("Breakpoint2", breakpoint2);
56
<?xml version="1.0" encoding="utf-8"?>
59
name="Breakpoint_Tests.cs">
61
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
62
<ModuleLoaded>Breakpoint_Tests.exe (Has symbols)</ModuleLoaded>
63
<ModuleLoaded>System.dll (No symbols)</ModuleLoaded>
64
<DebuggingPaused>Break Breakpoint_Tests.cs:12,4-12,40</DebuggingPaused>
68
FileName="Breakpoint_Tests.cs"
71
OriginalLocation="Breakpoint_Tests.cs:14,4-14,49" />
76
FileName="Breakpoint_Tests.cs"
79
OriginalLocation="Breakpoint_Tests.cs:16,4-16,49" />
81
<ModuleLoaded>System.Configuration.dll (No symbols)</ModuleLoaded>
82
<ModuleLoaded>System.Xml.dll (No symbols)</ModuleLoaded>
83
<LogMessage>Main 1\r\n</LogMessage>
84
<DebuggingPaused>Breakpoint Breakpoint_Tests.cs:14,4-14,49</DebuggingPaused>
85
<LogMessage>Main 2\r\n</LogMessage>
86
<DebuggingPaused>Breakpoint Breakpoint_Tests.cs:16,4-16,49</DebuggingPaused>
87
<LogMessage>Main 3\r\n</LogMessage>
88
<DebuggingPaused>Break Breakpoint_Tests.cs:17,4-17,40</DebuggingPaused>
93
FileName="Breakpoint_Tests.cs"
95
OriginalLocation="Breakpoint_Tests.cs:14,4-14,49" />
100
FileName="Breakpoint_Tests.cs"
102
OriginalLocation="Breakpoint_Tests.cs:16,4-16,49" />
106
#endif // EXPECTED_OUTPUT