Browse Source

Renamed debugger tests. The tests now have a prefix specifying which class they test.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4862 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 17 years ago
parent
commit
b5952382f6
  1. 64
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Debugger.Tests.csproj
  2. 6
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ControlFlow_DebuggeeKilled.cs
  3. 28
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ControlFlow_MainThreadExit.cs
  4. 124
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ControlFlow_Stepping.cs
  5. 18
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ControlFlow_TerminatePausedProcess.cs
  6. 20
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ControlFlow_TerminateRunningProcess.cs
  7. 62
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType.cs
  8. 146
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_Access.cs
  9. 22
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_CompilerGeneratedClasses.cs
  10. 18
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_DefinedTypes.cs
  11. 74
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_Generics.cs
  12. 16
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_Identity.cs
  13. 24
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_ValueType.cs
  14. 12
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Exception_Custom.cs
  15. 8
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Exception_StackOverflow.cs
  16. 16
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExpressionEvaluator.cs
  17. 12
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Process_MemoryReadWrite.cs
  18. 24
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_Arguments.cs
  19. 28
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_Callstack.cs
  20. 32
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_Lifetime.cs
  21. 12
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_LocalVariables.cs
  22. 22
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_SetIP.cs
  23. 32
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_VariablesLifetime.cs
  24. 30
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Thread_Name.cs
  25. 12
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_Array.cs
  26. 12
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_GenericDictionary.cs
  27. 36
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_Object.cs
  28. 12
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_Primitive.cs
  29. 4
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_Property.cs
  30. 2
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_PropertyVariableForm.cs
  31. 12
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/_Break.cs
  32. 10
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/_HelloWorld.cs
  33. 10
      src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/_SimpleProgram.cs

64
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Debugger.Tests.csproj

@ -46,43 +46,43 @@
<Compile Include="Src\DebuggerTests.cs" /> <Compile Include="Src\DebuggerTests.cs" />
<Compile Include="Src\DebuggerTestsBase.cs" /> <Compile Include="Src\DebuggerTestsBase.cs" />
<Compile Include="Src\TestPrograms\AppDomains.cs" /> <Compile Include="Src\TestPrograms\AppDomains.cs" />
<Compile Include="Src\TestPrograms\ArrayValue.cs" /> <Compile Include="Src\TestPrograms\Value_Array.cs" />
<Compile Include="Src\TestPrograms\AstEval.cs" /> <Compile Include="Src\TestPrograms\ExpressionEvaluator.cs" />
<Compile Include="Src\TestPrograms\Break.cs" /> <Compile Include="Src\TestPrograms\_Break.cs" />
<Compile Include="Src\TestPrograms\Breakpoint.cs" /> <Compile Include="Src\TestPrograms\Breakpoint.cs" />
<Compile Include="Src\TestPrograms\Callstack.cs" /> <Compile Include="Src\TestPrograms\StackFrame_Callstack.cs" />
<Compile Include="Src\TestPrograms\CompilerGeneratedClasses.cs" /> <Compile Include="Src\TestPrograms\DebugType_CompilerGeneratedClasses.cs" />
<Compile Include="Src\TestPrograms\DebuggeeKilled.cs" /> <Compile Include="Src\TestPrograms\ControlFlow_DebuggeeKilled.cs" />
<Compile Include="Src\TestPrograms\DebugTypes.cs" /> <Compile Include="Src\TestPrograms\DebugType.cs" />
<Compile Include="Src\TestPrograms\DefinedTypes.cs" /> <Compile Include="Src\TestPrograms\DebugType_DefinedTypes.cs" />
<Compile Include="Src\TestPrograms\Exception.cs" /> <Compile Include="Src\TestPrograms\Exception.cs" />
<Compile Include="Src\TestPrograms\ExceptionCustom.cs" /> <Compile Include="Src\TestPrograms\Exception_Custom.cs" />
<Compile Include="Src\TestPrograms\Expressions.cs" /> <Compile Include="Src\TestPrograms\Expressions.cs" />
<Compile Include="Src\TestPrograms\FileRelease.cs" /> <Compile Include="Src\TestPrograms\FileRelease.cs" />
<Compile Include="Src\TestPrograms\FunctionArgumentVariables.cs" /> <Compile Include="Src\TestPrograms\StackFrame_Arguments.cs" />
<Compile Include="Src\TestPrograms\FunctionLifetime.cs" /> <Compile Include="Src\TestPrograms\StackFrame_Lifetime.cs" />
<Compile Include="Src\TestPrograms\FunctionLocalVariables.cs" /> <Compile Include="Src\TestPrograms\StackFrame_LocalVariables.cs" />
<Compile Include="Src\TestPrograms\FunctionVariablesLifetime.cs" /> <Compile Include="Src\TestPrograms\StackFrame_VariablesLifetime.cs" />
<Compile Include="Src\TestPrograms\GenericDictionary.cs" /> <Compile Include="Src\TestPrograms\Value_GenericDictionary.cs" />
<Compile Include="Src\TestPrograms\Generics.cs" /> <Compile Include="Src\TestPrograms\DebugType_Generics.cs" />
<Compile Include="Src\TestPrograms\HelloWorld.cs" /> <Compile Include="Src\TestPrograms\_HelloWorld.cs" />
<Compile Include="Src\TestPrograms\MainThreadExit.cs" /> <Compile Include="Src\TestPrograms\ControlFlow_MainThreadExit.cs" />
<Compile Include="Src\TestPrograms\MemoryReadWrite.cs" /> <Compile Include="Src\TestPrograms\Process_MemoryReadWrite.cs" />
<Compile Include="Src\TestPrograms\Metadata.cs" /> <Compile Include="Src\TestPrograms\DebugType_Access.cs" />
<Compile Include="Src\TestPrograms\MetadataIdentity.cs" /> <Compile Include="Src\TestPrograms\DebugType_Identity.cs" />
<Compile Include="Src\TestPrograms\ObjectValue.cs" /> <Compile Include="Src\TestPrograms\Value_Object.cs" />
<Compile Include="Src\TestPrograms\PrimitiveValue.cs" /> <Compile Include="Src\TestPrograms\Value_Primitive.cs" />
<Compile Include="Src\TestPrograms\PropertyVariable.cs" /> <Compile Include="Src\TestPrograms\Value_Property.cs" />
<Compile Include="Src\TestPrograms\PropertyVariableForm.cs" /> <Compile Include="Src\TestPrograms\Value_PropertyVariableForm.cs" />
<Compile Include="Src\TestPrograms\SetIP.cs" /> <Compile Include="Src\TestPrograms\StackFrame_SetIP.cs" />
<Compile Include="Src\TestPrograms\SimpleProgram.cs" /> <Compile Include="Src\TestPrograms\_SimpleProgram.cs" />
<Compile Include="Src\TestPrograms\StackOverflow.cs" /> <Compile Include="Src\TestPrograms\Exception_StackOverflow.cs" />
<Compile Include="Src\TestPrograms\Stepping.cs" /> <Compile Include="Src\TestPrograms\ControlFlow_Stepping.cs" />
<Compile Include="Src\TestPrograms\Symbols.cs" /> <Compile Include="Src\TestPrograms\Symbols.cs" />
<Compile Include="Src\TestPrograms\TerminatePausedProcess.cs" /> <Compile Include="Src\TestPrograms\ControlFlow_TerminatePausedProcess.cs" />
<Compile Include="Src\TestPrograms\TerminateRunningProcess.cs" /> <Compile Include="Src\TestPrograms\ControlFlow_TerminateRunningProcess.cs" />
<Compile Include="Src\TestPrograms\ThreadName.cs" /> <Compile Include="Src\TestPrograms\Thread_Name.cs" />
<Compile Include="Src\TestPrograms\ValueType.cs" /> <Compile Include="Src\TestPrograms\DebugType_ValueType.cs" />
<Compile Include="Src\TestPrograms\_Template.cs" /> <Compile Include="Src\TestPrograms\_Template.cs" />
<EmbeddedResource Include="Src\TestPrograms\*.cs" /> <EmbeddedResource Include="Src\TestPrograms\*.cs" />
</ItemGroup> </ItemGroup>

6
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebuggeeKilled.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ControlFlow_DebuggeeKilled.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class DebuggeeKilled public class ControlFlow_DebuggeeKilled
{ {
public static void Main() public static void Main()
{ {
@ -25,9 +25,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
// [NUnit.Framework.Test] // [NUnit.Framework.Test]
// public void DebuggeeKilled() // public void ControlFlow_DebuggeeKilled()
// { // {
// StartTest("DebuggeeKilled.cs"); // StartTest("ControlFlow_DebuggeeKilled.cs");
// WaitForPause(); // WaitForPause();
// Assert.AreNotEqual(null, lastLogMessage); // Assert.AreNotEqual(null, lastLogMessage);
// System.Diagnostics.Process p = System.Diagnostics.Process.GetProcessById(int.Parse(lastLogMessage)); // System.Diagnostics.Process p = System.Diagnostics.Process.GetProcessById(int.Parse(lastLogMessage));

28
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MainThreadExit.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ControlFlow_MainThreadExit.cs

@ -10,7 +10,7 @@ using System.Threading;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class MainThreadExit public class ControlFlow_MainThreadExit
{ {
static ManualResetEvent doSomething = new ManualResetEvent(false); static ManualResetEvent doSomething = new ManualResetEvent(false);
@ -36,9 +36,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void MainThreadExit() public void ControlFlow_MainThreadExit()
{ {
StartTest("MainThreadExit.cs"); StartTest("ControlFlow_MainThreadExit.cs");
ObjectDump("ThreadsBeforeExit", process.Threads); ObjectDump("ThreadsBeforeExit", process.Threads);
process.AsyncContinue(); process.AsyncContinue();
// Wait for the main thread to exit // Wait for the main thread to exit
@ -56,11 +56,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="MainThreadExit.cs"> name="ControlFlow_MainThreadExit.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>MainThreadExit.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>ControlFlow_MainThreadExit.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break MainThreadExit.cs:24,4-24,40</DebuggingPaused> <DebuggingPaused>Break ControlFlow_MainThreadExit.cs:24,4-24,40</DebuggingPaused>
<ThreadsBeforeExit <ThreadsBeforeExit
Count="2" Count="2"
Selected="Thread Name = Suspended = False"> Selected="Thread Name = Suspended = False">
@ -69,13 +69,13 @@ namespace Debugger.Tests {
CurrentExceptionType="0" CurrentExceptionType="0"
IsAtSafePoint="True" IsAtSafePoint="True"
IsInValidState="True" IsInValidState="True"
MostRecentStackFrame="Debugger.Tests.TestPrograms.MainThreadExit.Main" MostRecentStackFrame="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.Main"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.MainThreadExit.Main" MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.Main"
Name="" Name=""
OldestStackFrame="Debugger.Tests.TestPrograms.MainThreadExit.Main" OldestStackFrame="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.Main"
Priority="Normal" Priority="Normal"
RuntimeValue=" = {System.Threading.Thread}" RuntimeValue=" = {System.Threading.Thread}"
SelectedStackFrame="Debugger.Tests.TestPrograms.MainThreadExit.Main" /> SelectedStackFrame="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.Main" />
</Item> </Item>
<Item> <Item>
<Thread <Thread
@ -83,14 +83,14 @@ namespace Debugger.Tests {
IsAtSafePoint="True" IsAtSafePoint="True"
IsInValidState="True" IsInValidState="True"
MostRecentStackFrame="System.Threading.WaitHandle.InternalWaitOne" MostRecentStackFrame="System.Threading.WaitHandle.InternalWaitOne"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.MainThreadExit.WaitForALongTime" MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.WaitForALongTime"
Name="Worker thread" Name="Worker thread"
OldestStackFrame="System.Threading.ThreadHelper.ThreadStart" OldestStackFrame="System.Threading.ThreadHelper.ThreadStart"
Priority="Normal" Priority="Normal"
RuntimeValue=" = {System.Threading.Thread}" /> RuntimeValue=" = {System.Threading.Thread}" />
</Item> </Item>
</ThreadsBeforeExit> </ThreadsBeforeExit>
<DebuggingPaused>ForcedBreak MainThreadExit.cs:29,4-29,26</DebuggingPaused> <DebuggingPaused>ForcedBreak ControlFlow_MainThreadExit.cs:29,4-29,26</DebuggingPaused>
<ThreadsAfterExit <ThreadsAfterExit
Count="2" Count="2"
Selected="Thread Name = Worker thread Suspended = False"> Selected="Thread Name = Worker thread Suspended = False">
@ -107,12 +107,12 @@ namespace Debugger.Tests {
IsAtSafePoint="True" IsAtSafePoint="True"
IsInValidState="True" IsInValidState="True"
MostRecentStackFrame="System.Threading.WaitHandle.InternalWaitOne" MostRecentStackFrame="System.Threading.WaitHandle.InternalWaitOne"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.MainThreadExit.WaitForALongTime" MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.WaitForALongTime"
Name="Worker thread" Name="Worker thread"
OldestStackFrame="System.Threading.ThreadHelper.ThreadStart" OldestStackFrame="System.Threading.ThreadHelper.ThreadStart"
Priority="Normal" Priority="Normal"
RuntimeValue=" = {System.Threading.Thread}" RuntimeValue=" = {System.Threading.Thread}"
SelectedStackFrame="Debugger.Tests.TestPrograms.MainThreadExit.WaitForALongTime" /> SelectedStackFrame="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.WaitForALongTime" />
</Item> </Item>
</ThreadsAfterExit> </ThreadsAfterExit>
<ProcessExited /> <ProcessExited />

124
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Stepping.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ControlFlow_Stepping.cs

@ -10,7 +10,7 @@ using System.Diagnostics;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class Stepping public class ControlFlow_Stepping
{ {
[DebuggerStepThrough] [DebuggerStepThrough]
static void StepRoot() static void StepRoot()
@ -121,9 +121,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void Stepping() public void ControlFlow_Stepping()
{ {
StartTest("Stepping.cs"); StartTest("ControlFlow_Stepping.cs");
SourcecodeSegment start = process.SelectedStackFrame.NextStatement; SourcecodeSegment start = process.SelectedStackFrame.NextStatement;
@ -202,79 +202,79 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="Stepping.cs"> name="ControlFlow_Stepping.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>Stepping.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>ControlFlow_Stepping.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Stepping.cs:102,4-102,40</DebuggingPaused> <DebuggingPaused>Break ControlFlow_Stepping.cs:102,4-102,40</DebuggingPaused>
<Log>Starting run with JMC=True</Log> <Log>Starting run with JMC=True</Log>
<DebuggingPaused>SetIP Stepping.cs:103,4-103,37</DebuggingPaused> <DebuggingPaused>SetIP ControlFlow_Stepping.cs:103,4-103,37</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:104,4-104,15</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:27,27-27,28</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:27,27-27,28</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:104,4-104,15</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:30,25-30,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:30,25-30,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:106,4-106,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:106,4-106,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:107,4-107,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:107,4-107,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:108,4-108,21</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:108,4-108,21</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:109,4-109,14</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:109,4-109,14</DebuggingPaused>
<ModuleLoaded>System.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.dll (No symbols)</ModuleLoaded>
<DebuggingPaused>StepComplete Stepping.cs:62,3-62,4</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:62,3-62,4</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:63,4-63,46</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:63,4-63,46</DebuggingPaused>
<ModuleLoaded>System.Configuration.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.Configuration.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>System.Xml.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.Xml.dll (No symbols)</ModuleLoaded>
<LogMessage>ZigZag2</LogMessage> <LogMessage>ZigZag2</LogMessage>
<DebuggingPaused>StepComplete Stepping.cs:64,4-64,14</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:64,4-64,14</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:62,3-62,4</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:62,3-62,4</DebuggingPaused>
<LogMessage>ZigZag2</LogMessage> <LogMessage>ZigZag2</LogMessage>
<DebuggingPaused>StepComplete Stepping.cs:109,4-109,14</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:91,50-91,51</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:91,50-91,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:94,50-94,51</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:94,50-94,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:111,3-111,4</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:111,3-111,4</DebuggingPaused>
<Log>Starting run with JMC=True</Log> <Log>Starting run with JMC=True</Log>
<DebuggingPaused>SetIP Stepping.cs:103,4-103,37</DebuggingPaused> <DebuggingPaused>SetIP ControlFlow_Stepping.cs:103,4-103,37</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:104,4-104,15</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:27,27-27,28</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:27,27-27,28</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:104,4-104,15</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:30,25-30,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:30,25-30,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:106,4-106,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:106,4-106,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:107,4-107,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:107,4-107,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:108,4-108,21</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:108,4-108,21</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:109,4-109,14</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:62,3-62,4</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:62,3-62,4</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:63,4-63,46</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:63,4-63,46</DebuggingPaused>
<LogMessage>ZigZag2</LogMessage> <LogMessage>ZigZag2</LogMessage>
<DebuggingPaused>StepComplete Stepping.cs:64,4-64,14</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:64,4-64,14</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:62,3-62,4</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:62,3-62,4</DebuggingPaused>
<LogMessage>ZigZag2</LogMessage> <LogMessage>ZigZag2</LogMessage>
<DebuggingPaused>StepComplete Stepping.cs:109,4-109,14</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:91,50-91,51</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:91,50-91,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:94,50-94,51</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:94,50-94,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:111,3-111,4</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:111,3-111,4</DebuggingPaused>
<Log>Starting run with JMC=False</Log> <Log>Starting run with JMC=False</Log>
<DebuggingPaused>SetIP Stepping.cs:103,4-103,37</DebuggingPaused> <DebuggingPaused>SetIP ControlFlow_Stepping.cs:103,4-103,37</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:104,4-104,15</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:30,25-30,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:30,25-30,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:106,4-106,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:106,4-106,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:107,4-107,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:107,4-107,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:108,4-108,21</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:108,4-108,21</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:109,4-109,14</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:109,4-109,14</DebuggingPaused>
<LogMessage>ZigZag2</LogMessage> <LogMessage>ZigZag2</LogMessage>
<LogMessage>ZigZag2</LogMessage> <LogMessage>ZigZag2</LogMessage>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:91,50-91,51</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:91,50-91,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:94,50-94,51</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:94,50-94,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:111,3-111,4</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_Stepping.cs:111,3-111,4</DebuggingPaused>
<ProcessExited /> <ProcessExited />
</Test> </Test>
</DebuggerTests> </DebuggerTests>

18
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/TerminatePausedProcess.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ControlFlow_TerminatePausedProcess.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class TerminatePausedProcess public class ControlFlow_TerminatePausedProcess
{ {
public static void Main() public static void Main()
{ {
@ -23,12 +23,12 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void TerminatePausedProcess() public void ControlFlow_TerminatePausedProcess()
{ {
StartTest("TerminatePausedProcess.cs"); StartTest("ControlFlow_TerminatePausedProcess.cs");
process.Terminate(); process.Terminate();
StartTest("TerminatePausedProcess.cs"); StartTest("ControlFlow_TerminatePausedProcess.cs");
process.Terminate(); process.Terminate();
CheckXmlOutput(); CheckXmlOutput();
@ -41,16 +41,16 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="TerminatePausedProcess.cs"> name="ControlFlow_TerminatePausedProcess.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>TerminatePausedProcess.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>ControlFlow_TerminatePausedProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break TerminatePausedProcess.cs:16,4-16,40</DebuggingPaused> <DebuggingPaused>Break ControlFlow_TerminatePausedProcess.cs:16,4-16,40</DebuggingPaused>
<ProcessExited /> <ProcessExited />
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>TerminatePausedProcess.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>ControlFlow_TerminatePausedProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break TerminatePausedProcess.cs:16,4-16,40</DebuggingPaused> <DebuggingPaused>Break ControlFlow_TerminatePausedProcess.cs:16,4-16,40</DebuggingPaused>
<ProcessExited /> <ProcessExited />
</Test> </Test>
</DebuggerTests> </DebuggerTests>

20
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/TerminateRunningProcess.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ControlFlow_TerminateRunningProcess.cs

@ -10,7 +10,7 @@ using System.Threading;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class TerminateRunningProcess public class ControlFlow_TerminateRunningProcess
{ {
static ManualResetEvent doSomething = new ManualResetEvent(false); static ManualResetEvent doSomething = new ManualResetEvent(false);
@ -30,10 +30,10 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void TerminateRunningProcess() public void ControlFlow_TerminateRunningProcess()
{ {
for(int i = 0; i < 2; i++) { for(int i = 0; i < 2; i++) {
StartTest("TerminateRunningProcess.cs"); StartTest("ControlFlow_TerminateRunningProcess.cs");
process.SelectedStackFrame.StepOver(); process.SelectedStackFrame.StepOver();
process.Paused += delegate { process.Paused += delegate {
Assert.Fail("Should not have received any callbacks after Terminate"); Assert.Fail("Should not have received any callbacks after Terminate");
@ -53,19 +53,19 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="TerminateRunningProcess.cs"> name="ControlFlow_TerminateRunningProcess.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>TerminateRunningProcess.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>ControlFlow_TerminateRunningProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break TerminateRunningProcess.cs:20,4-20,40</DebuggingPaused> <DebuggingPaused>Break ControlFlow_TerminateRunningProcess.cs:20,4-20,40</DebuggingPaused>
<DebuggingPaused>StepComplete TerminateRunningProcess.cs:21,4-21,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_TerminateRunningProcess.cs:21,4-21,26</DebuggingPaused>
<Log>Calling terminate</Log> <Log>Calling terminate</Log>
<ProcessExited /> <ProcessExited />
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>TerminateRunningProcess.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>ControlFlow_TerminateRunningProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break TerminateRunningProcess.cs:20,4-20,40</DebuggingPaused> <DebuggingPaused>Break ControlFlow_TerminateRunningProcess.cs:20,4-20,40</DebuggingPaused>
<DebuggingPaused>StepComplete TerminateRunningProcess.cs:21,4-21,26</DebuggingPaused> <DebuggingPaused>StepComplete ControlFlow_TerminateRunningProcess.cs:21,4-21,26</DebuggingPaused>
<Log>Calling terminate</Log> <Log>Calling terminate</Log>
<ProcessExited /> <ProcessExited />
</Test> </Test>

62
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugTypes.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType.cs

@ -10,7 +10,7 @@ using System.Collections.Generic;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class DebugTypes public class DebugType
{ {
public unsafe class MyClass public unsafe class MyClass
{ {
@ -100,13 +100,13 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void DebugTypes() public void DebugType()
{ {
ExpandProperties( ExpandProperties(
"Value.Type", "Value.Type",
"DebugType.ElementType" "DebugType.ElementType"
); );
StartTest("DebugTypes.cs"); StartTest("DebugType.cs");
ObjectDump("MyClassMemberts", process.SelectedStackFrame.GetLocalVariableValue("myClass").Type.GetMembers()); ObjectDump("MyClassMemberts", process.SelectedStackFrame.GetLocalVariableValue("myClass").Type.GetMembers());
ObjectDump("LocalVariables", process.SelectedStackFrame.GetLocalVariableValues()); ObjectDump("LocalVariables", process.SelectedStackFrame.GetLocalVariableValues());
process.Continue(); process.Continue();
@ -121,11 +121,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="DebugTypes.cs"> name="DebugType.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>DebugTypes.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>DebugType.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DebugTypes.cs:76,4-76,40</DebuggingPaused> <DebuggingPaused>Break DebugType.cs:76,4-76,40</DebuggingPaused>
<MyClassMemberts <MyClassMemberts
Capacity="16" Capacity="16"
Count="15"> Count="15">
@ -134,7 +134,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.i" FullName="MyClass.i"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="i" Name="i"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
@ -143,7 +143,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.b" FullName="MyClass.b"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="b" Name="b"
Type="System.Boolean" /> Type="System.Boolean" />
</Item> </Item>
@ -152,7 +152,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.c" FullName="MyClass.c"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="c" Name="c"
Type="System.Char" /> Type="System.Char" />
</Item> </Item>
@ -161,7 +161,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.intPtr" FullName="MyClass.intPtr"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="intPtr" Name="intPtr"
Type="System.IntPtr" /> Type="System.IntPtr" />
</Item> </Item>
@ -170,7 +170,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.pInt" FullName="MyClass.pInt"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="pInt" Name="pInt"
Type="System.Int32*" /> Type="System.Int32*" />
</Item> </Item>
@ -179,7 +179,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.pVoid" FullName="MyClass.pVoid"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="pVoid" Name="pVoid"
Type="System.Void*" /> Type="System.Void*" />
</Item> </Item>
@ -188,7 +188,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.intArray" FullName="MyClass.intArray"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="intArray" Name="intArray"
Type="System.Int32[]" /> Type="System.Int32[]" />
</Item> </Item>
@ -197,7 +197,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.intMultiArray" FullName="MyClass.intMultiArray"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="intMultiArray" Name="intMultiArray"
Type="System.Int32[,]" /> Type="System.Int32[,]" />
</Item> </Item>
@ -206,7 +206,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.intList" FullName="MyClass.intList"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="intList" Name="intList"
Type="System.Collections.Generic.List&lt;System.Int32&gt;" /> Type="System.Collections.Generic.List&lt;System.Int32&gt;" />
</Item> </Item>
@ -215,7 +215,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.intListArray" FullName="MyClass.intListArray"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="intListArray" Name="intListArray"
Type="System.Collections.Generic.List&lt;System.Int32&gt;[]" /> Type="System.Collections.Generic.List&lt;System.Int32&gt;[]" />
</Item> </Item>
@ -224,7 +224,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.point" FullName="MyClass.point"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="point" Name="point"
Type="Point" /> Type="Point" />
</Item> </Item>
@ -233,7 +233,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.myClass" FullName="MyClass.myClass"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="myClass" Name="myClass"
Type="MyClass" /> Type="MyClass" />
</Item> </Item>
@ -242,7 +242,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.fnPtr" FullName="MyClass.fnPtr"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="fnPtr" Name="fnPtr"
Type="Add" /> Type="Add" />
</Item> </Item>
@ -251,7 +251,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass" DeclaringType="MyClass"
FullName="MyClass.Foo" FullName="MyClass.Foo"
IsPublic="True" IsPublic="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="Foo" Name="Foo"
ParameterCount="2" ParameterCount="2"
ParameterTypes="{System.Object, System.Object[]}" ParameterTypes="{System.Object, System.Object[]}"
@ -263,7 +263,7 @@ namespace Debugger.Tests {
FullName="MyClass..ctor" FullName="MyClass..ctor"
IsPublic="True" IsPublic="True"
IsSpecialName="True" IsSpecialName="True"
Module="DebugTypes.exe" Module="DebugType.exe"
Name=".ctor" Name=".ctor"
StepOver="True" /> StepOver="True" />
</Item> </Item>
@ -284,7 +284,7 @@ namespace Debugger.Tests {
BaseType="System.Object" BaseType="System.Object"
FullName="MyClass" FullName="MyClass"
Kind="Class" Kind="Class"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="MyClass"> Name="MyClass">
<ElementType>null</ElementType> <ElementType>null</ElementType>
</DebugType> </DebugType>
@ -359,7 +359,7 @@ namespace Debugger.Tests {
BaseType="System.Object" BaseType="System.Object"
FullName="MyClass" FullName="MyClass"
Kind="Class" Kind="Class"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="MyClass"> Name="MyClass">
<ElementType>null</ElementType> <ElementType>null</ElementType>
</DebugType> </DebugType>
@ -633,7 +633,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType" BaseType="System.ValueType"
FullName="Point" FullName="Point"
Kind="ValueType" Kind="ValueType"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="Point"> Name="Point">
<ElementType>null</ElementType> <ElementType>null</ElementType>
</DebugType> </DebugType>
@ -659,7 +659,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType" BaseType="System.ValueType"
FullName="Point" FullName="Point"
Kind="ValueType" Kind="ValueType"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="Point"> Name="Point">
<ElementType>null</ElementType> <ElementType>null</ElementType>
</DebugType> </DebugType>
@ -702,7 +702,7 @@ namespace Debugger.Tests {
GenericArguments="{System.Int32}" GenericArguments="{System.Int32}"
Interfaces="{MyInterface&lt;System.String,System.Collections.Generic.IEnumerable&lt;System.Int32&gt;,MyClass&gt;}" Interfaces="{MyInterface&lt;System.String,System.Collections.Generic.IEnumerable&lt;System.Int32&gt;,MyClass&gt;}"
Kind="Class" Kind="Class"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="MyInterfaceImpl&lt;Int32&gt;"> Name="MyInterfaceImpl&lt;Int32&gt;">
<ElementType>null</ElementType> <ElementType>null</ElementType>
</DebugType> </DebugType>
@ -723,7 +723,7 @@ namespace Debugger.Tests {
GenericArguments="{System.Int32}" GenericArguments="{System.Int32}"
Interfaces="{MyInterface&lt;System.String,System.Collections.Generic.IEnumerable&lt;System.Int32&gt;,MyClass&gt;}" Interfaces="{MyInterface&lt;System.String,System.Collections.Generic.IEnumerable&lt;System.Int32&gt;,MyClass&gt;}"
Kind="Class" Kind="Class"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="MyInterfaceImpl&lt;Int32&gt;"> Name="MyInterfaceImpl&lt;Int32&gt;">
<ElementType>null</ElementType> <ElementType>null</ElementType>
</DebugType> </DebugType>
@ -731,7 +731,7 @@ namespace Debugger.Tests {
</Value> </Value>
</Item> </Item>
</LocalVariables> </LocalVariables>
<DebuggingPaused>Break DebugTypes.cs:93,4-93,40</DebuggingPaused> <DebuggingPaused>Break DebugType.cs:93,4-93,40</DebuggingPaused>
<Arguments <Arguments
Capacity="16" Capacity="16"
Count="15"> Count="15">
@ -1002,7 +1002,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType" BaseType="System.ValueType"
FullName="Point" FullName="Point"
Kind="ValueType" Kind="ValueType"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="Point"> Name="Point">
<ElementType>null</ElementType> <ElementType>null</ElementType>
</DebugType> </DebugType>
@ -1020,7 +1020,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType" BaseType="System.ValueType"
FullName="Point" FullName="Point"
Kind="ValueType" Kind="ValueType"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="Point"> Name="Point">
<ElementType>null</ElementType> <ElementType>null</ElementType>
</DebugType> </DebugType>
@ -1046,7 +1046,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType" BaseType="System.ValueType"
FullName="Point" FullName="Point"
Kind="ValueType" Kind="ValueType"
Module="DebugTypes.exe" Module="DebugType.exe"
Name="Point"> Name="Point">
<ElementType>null</ElementType> <ElementType>null</ElementType>
</DebugType> </DebugType>

146
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Metadata.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_Access.cs

@ -14,7 +14,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class Metadata public class DebugType_Access
{ {
private int privateField; private int privateField;
public int publicField; public int publicField;
@ -55,9 +55,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void Metadata() public void DebugType_Access()
{ {
StartTest("Metadata.cs"); StartTest("DebugType_Access.cs");
ObjectDump("Members", process.SelectedStackFrame.MethodInfo.DeclaringType.GetMembers(BindingFlags.All)); ObjectDump("Members", process.SelectedStackFrame.MethodInfo.DeclaringType.GetMembers(BindingFlags.All));
ObjectDump("Types", process.SelectedStackFrame.MethodInfo.Module.GetNamesOfDefinedTypes()); ObjectDump("Types", process.SelectedStackFrame.MethodInfo.Module.GetNamesOfDefinedTypes());
@ -72,219 +72,219 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="Metadata.cs"> name="DebugType_Access.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>Metadata.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>DebugType_Access.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Metadata.cs:39,4-39,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Access.cs:39,4-39,40</DebuggingPaused>
<Members <Members
Capacity="64" Capacity="64"
Count="34"> Count="34">
<Item> <Item>
<FieldInfo <FieldInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.privateField" FullName="Debugger.Tests.TestPrograms.DebugType_Access.privateField"
IsPrivate="True" IsPrivate="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="privateField" Name="privateField"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
<Item> <Item>
<FieldInfo <FieldInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.publicField" FullName="Debugger.Tests.TestPrograms.DebugType_Access.publicField"
IsPublic="True" IsPublic="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="publicField" Name="publicField"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
<Item> <Item>
<FieldInfo <FieldInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.protectedField" FullName="Debugger.Tests.TestPrograms.DebugType_Access.protectedField"
IsProtected="True" IsProtected="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="protectedField" Name="protectedField"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
<Item> <Item>
<FieldInfo <FieldInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.internalField" FullName="Debugger.Tests.TestPrograms.DebugType_Access.internalField"
IsInternal="True" IsInternal="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="internalField" Name="internalField"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
<Item> <Item>
<FieldInfo <FieldInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.staticField" FullName="Debugger.Tests.TestPrograms.DebugType_Access.staticField"
IsPrivate="True" IsPrivate="True"
IsStatic="True" IsStatic="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="staticField" Name="staticField"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.get_privateProperty" FullName="Debugger.Tests.TestPrograms.DebugType_Access.get_privateProperty"
IsPrivate="True" IsPrivate="True"
IsSpecialName="True" IsSpecialName="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="get_privateProperty" Name="get_privateProperty"
ReturnType="System.Int32" /> ReturnType="System.Int32" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.get_publicProperty" FullName="Debugger.Tests.TestPrograms.DebugType_Access.get_publicProperty"
IsPublic="True" IsPublic="True"
IsSpecialName="True" IsSpecialName="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="get_publicProperty" Name="get_publicProperty"
ReturnType="System.Int32" /> ReturnType="System.Int32" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.get_protectedProperty" FullName="Debugger.Tests.TestPrograms.DebugType_Access.get_protectedProperty"
IsProtected="True" IsProtected="True"
IsSpecialName="True" IsSpecialName="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="get_protectedProperty" Name="get_protectedProperty"
ReturnType="System.Int32" /> ReturnType="System.Int32" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.get_internalProperty" FullName="Debugger.Tests.TestPrograms.DebugType_Access.get_internalProperty"
IsInternal="True" IsInternal="True"
IsSpecialName="True" IsSpecialName="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="get_internalProperty" Name="get_internalProperty"
ReturnType="System.Int32" /> ReturnType="System.Int32" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.get_staticProperty" FullName="Debugger.Tests.TestPrograms.DebugType_Access.get_staticProperty"
IsPrivate="True" IsPrivate="True"
IsSpecialName="True" IsSpecialName="True"
IsStatic="True" IsStatic="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="get_staticProperty" Name="get_staticProperty"
ReturnType="System.Int32" /> ReturnType="System.Int32" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.privateMethod" FullName="Debugger.Tests.TestPrograms.DebugType_Access.privateMethod"
IsPrivate="True" IsPrivate="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="privateMethod" /> Name="privateMethod" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.publicMethod" FullName="Debugger.Tests.TestPrograms.DebugType_Access.publicMethod"
IsPublic="True" IsPublic="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="publicMethod" /> Name="publicMethod" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.protectedMethod" FullName="Debugger.Tests.TestPrograms.DebugType_Access.protectedMethod"
IsProtected="True" IsProtected="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="protectedMethod" /> Name="protectedMethod" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.internalMethod" FullName="Debugger.Tests.TestPrograms.DebugType_Access.internalMethod"
IsInternal="True" IsInternal="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="internalMethod" /> Name="internalMethod" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.staticMethod" FullName="Debugger.Tests.TestPrograms.DebugType_Access.staticMethod"
IsPrivate="True" IsPrivate="True"
IsStatic="True" IsStatic="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="staticMethod" /> Name="staticMethod" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.Main" FullName="Debugger.Tests.TestPrograms.DebugType_Access.Main"
IsPublic="True" IsPublic="True"
IsStatic="True" IsStatic="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="Main" /> Name="Main" />
</Item> </Item>
<Item> <Item>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata..ctor" FullName="Debugger.Tests.TestPrograms.DebugType_Access..ctor"
IsPublic="True" IsPublic="True"
IsSpecialName="True" IsSpecialName="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name=".ctor" Name=".ctor"
StepOver="True" /> StepOver="True" />
</Item> </Item>
<Item> <Item>
<PropertyInfo <PropertyInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.privateProperty" FullName="Debugger.Tests.TestPrograms.DebugType_Access.privateProperty"
GetMethod="get_privateProperty" GetMethod="get_privateProperty"
IsPrivate="True" IsPrivate="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="privateProperty" Name="privateProperty"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
<Item> <Item>
<PropertyInfo <PropertyInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.publicProperty" FullName="Debugger.Tests.TestPrograms.DebugType_Access.publicProperty"
GetMethod="get_publicProperty" GetMethod="get_publicProperty"
IsPublic="True" IsPublic="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="publicProperty" Name="publicProperty"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
<Item> <Item>
<PropertyInfo <PropertyInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.protectedProperty" FullName="Debugger.Tests.TestPrograms.DebugType_Access.protectedProperty"
GetMethod="get_protectedProperty" GetMethod="get_protectedProperty"
IsProtected="True" IsProtected="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="protectedProperty" Name="protectedProperty"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
<Item> <Item>
<PropertyInfo <PropertyInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.internalProperty" FullName="Debugger.Tests.TestPrograms.DebugType_Access.internalProperty"
GetMethod="get_internalProperty" GetMethod="get_internalProperty"
IsInternal="True" IsInternal="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="internalProperty" Name="internalProperty"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
<Item> <Item>
<PropertyInfo <PropertyInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata" DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.Metadata.staticProperty" FullName="Debugger.Tests.TestPrograms.DebugType_Access.staticProperty"
GetMethod="get_staticProperty" GetMethod="get_staticProperty"
IsPrivate="True" IsPrivate="True"
IsStatic="True" IsStatic="True"
Module="Metadata.exe" Module="DebugType_Access.exe"
Name="staticProperty" Name="staticProperty"
Type="System.Int32" /> Type="System.Int32" />
</Item> </Item>
@ -423,7 +423,7 @@ namespace Debugger.Tests {
<Types <Types
Capacity="8" Capacity="8"
Count="7"> Count="7">
<Item>Debugger.Tests.TestPrograms.Metadata</Item> <Item>Debugger.Tests.TestPrograms.DebugType_Access</Item>
<Item>Debugger.Tests.TestPrograms.Metadata2</Item> <Item>Debugger.Tests.TestPrograms.Metadata2</Item>
<Item>Debugger.Tests.TestPrograms.Metadata3</Item> <Item>Debugger.Tests.TestPrograms.Metadata3</Item>
<Item>Debugger.Tests.TestPrograms.Metadata4</Item> <Item>Debugger.Tests.TestPrograms.Metadata4</Item>

22
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/CompilerGeneratedClasses.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_CompilerGeneratedClasses.cs

@ -10,13 +10,13 @@ using System.Collections.Generic;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class CompilerGeneratedClasses public class DebugType_CompilerGeneratedClasses
{ {
delegate void IntDelegate(int i); delegate void IntDelegate(int i);
public static void Main() public static void Main()
{ {
new List<object>(new CompilerGeneratedClasses().MyEnum()); new List<object>(new DebugType_CompilerGeneratedClasses().MyEnum());
} }
IEnumerable<object> MyEnum() IEnumerable<object> MyEnum()
@ -67,9 +67,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void CompilerGeneratedClasses() public void DebugType_CompilerGeneratedClasses()
{ {
StartTest("CompilerGeneratedClasses.cs"); StartTest("DebugType_CompilerGeneratedClasses.cs");
ObjectDump("YieldLocalVariables", ObjectDump("YieldLocalVariables",
process.SelectedStackFrame.MethodInfo.LocalVariables. process.SelectedStackFrame.MethodInfo.LocalVariables.
Select(v => new { v.Name, Value = v.GetValue(process.SelectedStackFrame) }) Select(v => new { v.Name, Value = v.GetValue(process.SelectedStackFrame) })
@ -94,11 +94,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="CompilerGeneratedClasses.cs"> name="DebugType_CompilerGeneratedClasses.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>CompilerGeneratedClasses.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>DebugType_CompilerGeneratedClasses.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break CompilerGeneratedClasses.cs:35,5-35,41</DebuggingPaused> <DebuggingPaused>Break DebugType_CompilerGeneratedClasses.cs:35,5-35,41</DebuggingPaused>
<YieldLocalVariables> <YieldLocalVariables>
<Item> <Item>
<AnonymousType <AnonymousType
@ -121,7 +121,7 @@ namespace Debugger.Tests {
Value="(()(CS$&lt;&gt;8__locals5)).stateLessVar_NestedDelegRef = 203" /> Value="(()(CS$&lt;&gt;8__locals5)).stateLessVar_NestedDelegRef = 203" />
</Item> </Item>
</YieldLocalVariables> </YieldLocalVariables>
<DebuggingPaused>Break CompilerGeneratedClasses.cs:54,6-54,42</DebuggingPaused> <DebuggingPaused>Break DebugType_CompilerGeneratedClasses.cs:54,6-54,42</DebuggingPaused>
<OutterDelegateLocalVariables> <OutterDelegateLocalVariables>
<Item> <Item>
<AnonymousType <AnonymousType
@ -166,10 +166,10 @@ namespace Debugger.Tests {
<Item> <Item>
<AnonymousType <AnonymousType
Name="this" Name="this"
Value="(()((()(this)).CS$&lt;&gt;8__locals3)).&lt;&gt;4__this = {Debugger.Tests.TestPrograms.CompilerGeneratedClasses}" /> Value="(()((()(this)).CS$&lt;&gt;8__locals3)).&lt;&gt;4__this = {Debugger.Tests.TestPrograms.DebugType_CompilerGeneratedClasses}" />
</Item> </Item>
</OutterDelegateLocalVariables> </OutterDelegateLocalVariables>
<DebuggingPaused>Break CompilerGeneratedClasses.cs:51,7-51,43</DebuggingPaused> <DebuggingPaused>Break DebugType_CompilerGeneratedClasses.cs:51,7-51,43</DebuggingPaused>
<InnterDelegateLocalVariables> <InnterDelegateLocalVariables>
<Item> <Item>
<AnonymousType <AnonymousType
@ -209,7 +209,7 @@ namespace Debugger.Tests {
<Item> <Item>
<AnonymousType <AnonymousType
Name="this" Name="this"
Value="(()((()(this)).CS$&lt;&gt;8__locals3)).&lt;&gt;4__this = {Debugger.Tests.TestPrograms.CompilerGeneratedClasses}" /> Value="(()((()(this)).CS$&lt;&gt;8__locals3)).&lt;&gt;4__this = {Debugger.Tests.TestPrograms.DebugType_CompilerGeneratedClasses}" />
</Item> </Item>
</InnterDelegateLocalVariables> </InnterDelegateLocalVariables>
<ProcessExited /> <ProcessExited />

18
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DefinedTypes.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_DefinedTypes.cs

@ -33,12 +33,12 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void DefinedTypes() public void DebugType_DefinedTypes()
{ {
StartTest("DefinedTypes.cs"); StartTest("DebugType_DefinedTypes.cs");
ObjectDump("TypesAsString", process.Modules["DefinedTypes.exe"].GetNamesOfDefinedTypes()); ObjectDump("TypesAsString", process.Modules["DebugType_DefinedTypes.exe"].GetNamesOfDefinedTypes());
ObjectDump("Types", process.Modules["DefinedTypes.exe"].GetDefinedTypes()); ObjectDump("Types", process.Modules["DebugType_DefinedTypes.exe"].GetDefinedTypes());
EndTest(); EndTest();
} }
@ -50,11 +50,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="DefinedTypes.cs"> name="DebugType_DefinedTypes.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>DefinedTypes.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>DebugType_DefinedTypes.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DefinedTypes.cs:16,4-16,40</DebuggingPaused> <DebuggingPaused>Break DebugType_DefinedTypes.cs:16,4-16,40</DebuggingPaused>
<TypesAsString <TypesAsString
Capacity="4" Capacity="4"
Count="3"> Count="3">
@ -70,7 +70,7 @@ namespace Debugger.Tests {
BaseType="System.Object" BaseType="System.Object"
FullName="Debugger.Tests.TestPrograms.DefinedTypes_Class" FullName="Debugger.Tests.TestPrograms.DefinedTypes_Class"
Kind="Class" Kind="Class"
Module="DefinedTypes.exe" Module="DebugType_DefinedTypes.exe"
Name="DefinedTypes_Class" /> Name="DefinedTypes_Class" />
</Item> </Item>
<Item> <Item>
@ -78,7 +78,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType" BaseType="System.ValueType"
FullName="Debugger.Tests.TestPrograms.DefinedTypes_Struct" FullName="Debugger.Tests.TestPrograms.DefinedTypes_Struct"
Kind="ValueType" Kind="ValueType"
Module="DefinedTypes.exe" Module="DebugType_DefinedTypes.exe"
Name="DefinedTypes_Struct" /> Name="DefinedTypes_Struct" />
</Item> </Item>
</Types> </Types>

74
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Generics.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_Generics.cs

@ -101,13 +101,13 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void Generics() public void DebugType_Generics()
{ {
ExpandProperties( ExpandProperties(
"StackFrame.MethodInfo", "StackFrame.MethodInfo",
"MemberInfo.DeclaringType" "MemberInfo.DeclaringType"
); );
StartTest("Generics.cs"); StartTest("DebugType_Generics.cs");
for(int i = 0; i < 8; i++) { for(int i = 0; i < 8; i++) {
ObjectDump("SelectedStackFrame", process.SelectedStackFrame); ObjectDump("SelectedStackFrame", process.SelectedStackFrame);
@ -127,11 +127,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="Generics.cs"> name="DebugType_Generics.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>Generics.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>DebugType_Generics.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Generics.cs:48,4-48,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Generics.cs:48,4-48,40</DebuggingPaused>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
ArgumentCount="2" ArgumentCount="2"
@ -139,13 +139,13 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Metod" MethodInfo="Metod"
NextStatement="Generics.cs:48,4-48,40"> NextStatement="DebugType_Generics.cs:48,4-48,40">
<MethodInfo> <MethodInfo>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;" DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.Metod" FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.Metod"
IsPublic="True" IsPublic="True"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="Metod" Name="Metod"
ParameterCount="2" ParameterCount="2"
ParameterTypes="{System.Int32, System.String}" ParameterTypes="{System.Int32, System.String}"
@ -156,7 +156,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;" FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}" GenericArguments="{System.Int32, System.String}"
Kind="Class" Kind="Class"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="GenericClass&lt;Int32,String&gt;" /> Name="GenericClass&lt;Int32,String&gt;" />
</DeclaringType> </DeclaringType>
</MethodInfo> </MethodInfo>
@ -182,7 +182,7 @@ namespace Debugger.Tests {
Type="System.String" /> Type="System.String" />
</Item> </Item>
</SelectedStackFrame-GetArguments> </SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:54,4-54,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Generics.cs:54,4-54,40</DebuggingPaused>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
ArgumentCount="2" ArgumentCount="2"
@ -190,13 +190,13 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="GenericMethod" MethodInfo="GenericMethod"
NextStatement="Generics.cs:54,4-54,40"> NextStatement="DebugType_Generics.cs:54,4-54,40">
<MethodInfo> <MethodInfo>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;" DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.GenericMethod" FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.GenericMethod"
IsPublic="True" IsPublic="True"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="GenericMethod" Name="GenericMethod"
ParameterCount="2" ParameterCount="2"
ParameterTypes="{System.Int32, System.String}" ParameterTypes="{System.Int32, System.String}"
@ -207,7 +207,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;" FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}" GenericArguments="{System.Int32, System.String}"
Kind="Class" Kind="Class"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="GenericClass&lt;Int32,String&gt;" /> Name="GenericClass&lt;Int32,String&gt;" />
</DeclaringType> </DeclaringType>
</MethodInfo> </MethodInfo>
@ -233,7 +233,7 @@ namespace Debugger.Tests {
Type="System.String" /> Type="System.String" />
</Item> </Item>
</SelectedStackFrame-GetArguments> </SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:60,4-60,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Generics.cs:60,4-60,40</DebuggingPaused>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
ArgumentCount="2" ArgumentCount="2"
@ -241,14 +241,14 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="StaticMetod" MethodInfo="StaticMetod"
NextStatement="Generics.cs:60,4-60,40"> NextStatement="DebugType_Generics.cs:60,4-60,40">
<MethodInfo> <MethodInfo>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;" DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.StaticMetod" FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.StaticMetod"
IsPublic="True" IsPublic="True"
IsStatic="True" IsStatic="True"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="StaticMetod" Name="StaticMetod"
ParameterCount="2" ParameterCount="2"
ParameterTypes="{System.Int32, System.String}" ParameterTypes="{System.Int32, System.String}"
@ -259,7 +259,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;" FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}" GenericArguments="{System.Int32, System.String}"
Kind="Class" Kind="Class"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="GenericClass&lt;Int32,String&gt;" /> Name="GenericClass&lt;Int32,String&gt;" />
</DeclaringType> </DeclaringType>
</MethodInfo> </MethodInfo>
@ -285,7 +285,7 @@ namespace Debugger.Tests {
Type="System.String" /> Type="System.String" />
</Item> </Item>
</SelectedStackFrame-GetArguments> </SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:66,4-66,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Generics.cs:66,4-66,40</DebuggingPaused>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
ArgumentCount="2" ArgumentCount="2"
@ -293,14 +293,14 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="StaticGenericMethod" MethodInfo="StaticGenericMethod"
NextStatement="Generics.cs:66,4-66,40"> NextStatement="DebugType_Generics.cs:66,4-66,40">
<MethodInfo> <MethodInfo>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;" DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.StaticGenericMethod" FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.StaticGenericMethod"
IsPublic="True" IsPublic="True"
IsStatic="True" IsStatic="True"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="StaticGenericMethod" Name="StaticGenericMethod"
ParameterCount="2" ParameterCount="2"
ParameterTypes="{System.Int32, System.String}" ParameterTypes="{System.Int32, System.String}"
@ -311,7 +311,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;" FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}" GenericArguments="{System.Int32, System.String}"
Kind="Class" Kind="Class"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="GenericClass&lt;Int32,String&gt;" /> Name="GenericClass&lt;Int32,String&gt;" />
</DeclaringType> </DeclaringType>
</MethodInfo> </MethodInfo>
@ -337,7 +337,7 @@ namespace Debugger.Tests {
Type="System.String" /> Type="System.String" />
</Item> </Item>
</SelectedStackFrame-GetArguments> </SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:75,4-75,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Generics.cs:75,4-75,40</DebuggingPaused>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
ArgumentCount="2" ArgumentCount="2"
@ -345,13 +345,13 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Metod" MethodInfo="Metod"
NextStatement="Generics.cs:75,4-75,40"> NextStatement="DebugType_Generics.cs:75,4-75,40">
<MethodInfo> <MethodInfo>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;" DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.Metod" FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.Metod"
IsPublic="True" IsPublic="True"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="Metod" Name="Metod"
ParameterCount="2" ParameterCount="2"
ParameterTypes="{System.Int32, System.String}" ParameterTypes="{System.Int32, System.String}"
@ -362,7 +362,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;" FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}" GenericArguments="{System.Int32, System.String}"
Kind="ValueType" Kind="ValueType"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="GenericStruct&lt;Int32,String&gt;" /> Name="GenericStruct&lt;Int32,String&gt;" />
</DeclaringType> </DeclaringType>
</MethodInfo> </MethodInfo>
@ -388,7 +388,7 @@ namespace Debugger.Tests {
Type="System.String" /> Type="System.String" />
</Item> </Item>
</SelectedStackFrame-GetArguments> </SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:81,4-81,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Generics.cs:81,4-81,40</DebuggingPaused>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
ArgumentCount="2" ArgumentCount="2"
@ -396,13 +396,13 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="GenericMethod" MethodInfo="GenericMethod"
NextStatement="Generics.cs:81,4-81,40"> NextStatement="DebugType_Generics.cs:81,4-81,40">
<MethodInfo> <MethodInfo>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;" DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.GenericMethod" FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.GenericMethod"
IsPublic="True" IsPublic="True"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="GenericMethod" Name="GenericMethod"
ParameterCount="2" ParameterCount="2"
ParameterTypes="{System.Int32, System.String}" ParameterTypes="{System.Int32, System.String}"
@ -413,7 +413,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;" FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}" GenericArguments="{System.Int32, System.String}"
Kind="ValueType" Kind="ValueType"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="GenericStruct&lt;Int32,String&gt;" /> Name="GenericStruct&lt;Int32,String&gt;" />
</DeclaringType> </DeclaringType>
</MethodInfo> </MethodInfo>
@ -439,7 +439,7 @@ namespace Debugger.Tests {
Type="System.String" /> Type="System.String" />
</Item> </Item>
</SelectedStackFrame-GetArguments> </SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:87,4-87,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Generics.cs:87,4-87,40</DebuggingPaused>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
ArgumentCount="2" ArgumentCount="2"
@ -447,14 +447,14 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="StaticMetod" MethodInfo="StaticMetod"
NextStatement="Generics.cs:87,4-87,40"> NextStatement="DebugType_Generics.cs:87,4-87,40">
<MethodInfo> <MethodInfo>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;" DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.StaticMetod" FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.StaticMetod"
IsPublic="True" IsPublic="True"
IsStatic="True" IsStatic="True"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="StaticMetod" Name="StaticMetod"
ParameterCount="2" ParameterCount="2"
ParameterTypes="{System.Int32, System.String}" ParameterTypes="{System.Int32, System.String}"
@ -465,7 +465,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;" FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}" GenericArguments="{System.Int32, System.String}"
Kind="ValueType" Kind="ValueType"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="GenericStruct&lt;Int32,String&gt;" /> Name="GenericStruct&lt;Int32,String&gt;" />
</DeclaringType> </DeclaringType>
</MethodInfo> </MethodInfo>
@ -491,7 +491,7 @@ namespace Debugger.Tests {
Type="System.String" /> Type="System.String" />
</Item> </Item>
</SelectedStackFrame-GetArguments> </SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:93,4-93,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Generics.cs:93,4-93,40</DebuggingPaused>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
ArgumentCount="2" ArgumentCount="2"
@ -499,14 +499,14 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="StaticGenericMethod" MethodInfo="StaticGenericMethod"
NextStatement="Generics.cs:93,4-93,40"> NextStatement="DebugType_Generics.cs:93,4-93,40">
<MethodInfo> <MethodInfo>
<MethodInfo <MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;" DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.StaticGenericMethod" FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.StaticGenericMethod"
IsPublic="True" IsPublic="True"
IsStatic="True" IsStatic="True"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="StaticGenericMethod" Name="StaticGenericMethod"
ParameterCount="2" ParameterCount="2"
ParameterTypes="{System.Int32, System.String}" ParameterTypes="{System.Int32, System.String}"
@ -517,7 +517,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;" FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}" GenericArguments="{System.Int32, System.String}"
Kind="ValueType" Kind="ValueType"
Module="Generics.exe" Module="DebugType_Generics.exe"
Name="GenericStruct&lt;Int32,String&gt;" /> Name="GenericStruct&lt;Int32,String&gt;" />
</DeclaringType> </DeclaringType>
</MethodInfo> </MethodInfo>
@ -543,7 +543,7 @@ namespace Debugger.Tests {
Type="System.String" /> Type="System.String" />
</Item> </Item>
</SelectedStackFrame-GetArguments> </SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:28,4-28,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Generics.cs:28,4-28,40</DebuggingPaused>
<Prop> <Prop>
<Value <Value
AsString="0" AsString="0"

16
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MetadataIdentity.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_Identity.cs

@ -9,11 +9,11 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class MetadataIdentity public class DebugType_Identity
{ {
public static void Main() public static void Main()
{ {
new MetadataIdentity().Func(); new DebugType_Identity().Func();
} }
public void Func() public void Func()
@ -32,9 +32,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void MetadataIdentity() public void DebugType_Identity()
{ {
StartTest("MetadataIdentity.cs"); StartTest("DebugType_Identity.cs");
DebugType type = process.SelectedStackFrame.GetThisValue().Type; DebugType type = process.SelectedStackFrame.GetThisValue().Type;
MethodInfo mainMethod = process.SelectedStackFrame.MethodInfo; MethodInfo mainMethod = process.SelectedStackFrame.MethodInfo;
@ -53,12 +53,12 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="MetadataIdentity.cs"> name="DebugType_Identity.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>MetadataIdentity.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>DebugType_Identity.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break MetadataIdentity.cs:21,4-21,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Identity.cs:21,4-21,40</DebuggingPaused>
<DebuggingPaused>Break MetadataIdentity.cs:22,4-22,40</DebuggingPaused> <DebuggingPaused>Break DebugType_Identity.cs:22,4-22,40</DebuggingPaused>
<ProcessExited /> <ProcessExited />
</Test> </Test>
</DebuggerTests> </DebuggerTests>

24
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ValueType.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_ValueType.cs

@ -9,11 +9,11 @@ using System;
namespace Debugger.Tests namespace Debugger.Tests
{ {
public struct ValueType public struct DebugType_ValueType
{ {
public static void Main() public static void Main()
{ {
new ValueType().Fun(); new DebugType_ValueType().Fun();
} }
public void Fun() public void Fun()
@ -28,13 +28,13 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void ValueType() public void DebugType_ValueType()
{ {
ExpandProperties( ExpandProperties(
"Value.Type", "Value.Type",
"DebugType.BaseType" "DebugType.BaseType"
); );
StartTest("ValueType.cs"); StartTest("DebugType_ValueType.cs");
ObjectDump("this", process.SelectedStackFrame.GetThisValue()); ObjectDump("this", process.SelectedStackFrame.GetThisValue());
@ -48,24 +48,24 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="ValueType.cs"> name="DebugType_ValueType.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>ValueType.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>DebugType_ValueType.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ValueType.cs:21,4-21,40</DebuggingPaused> <DebuggingPaused>Break DebugType_ValueType.cs:21,4-21,40</DebuggingPaused>
<this> <this>
<Value <Value
AsString="{Debugger.Tests.ValueType}" AsString="{Debugger.Tests.DebugType_ValueType}"
Expression="this" Expression="this"
PrimitiveValue="{Exception: Value is not a primitive type}" PrimitiveValue="{Exception: Value is not a primitive type}"
Type="Debugger.Tests.ValueType"> Type="Debugger.Tests.DebugType_ValueType">
<Type> <Type>
<DebugType <DebugType
BaseType="System.ValueType" BaseType="System.ValueType"
FullName="Debugger.Tests.ValueType" FullName="Debugger.Tests.DebugType_ValueType"
Kind="ValueType" Kind="ValueType"
Module="ValueType.exe" Module="DebugType_ValueType.exe"
Name="ValueType"> Name="DebugType_ValueType">
<BaseType> <BaseType>
<DebugType <DebugType
BaseType="System.Object" BaseType="System.Object"

12
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExceptionCustom.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Exception_Custom.cs

@ -17,7 +17,7 @@ namespace Debugger.Tests.TestPrograms
} }
} }
public class ExceptionCustom public class Exception_Custom
{ {
public static void Main() public static void Main()
{ {
@ -35,9 +35,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void ExceptionCustom() public void Exception_Custom()
{ {
StartTest("ExceptionCustom.cs"); StartTest("Exception_Custom.cs");
process.Terminate(); process.Terminate();
EndTest(); EndTest();
} }
@ -49,12 +49,12 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="ExceptionCustom.cs"> name="Exception_Custom.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>ExceptionCustom.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>Exception_Custom.exe (Has symbols)</ModuleLoaded>
<ExceptionThrown>Debugger.Tests.TestPrograms.MyException: test2 ---&gt; Debugger.Tests.TestPrograms.MyException: test1</ExceptionThrown> <ExceptionThrown>Debugger.Tests.TestPrograms.MyException: test2 ---&gt; Debugger.Tests.TestPrograms.MyException: test1</ExceptionThrown>
<DebuggingPaused>ExceptionIntercepted ExceptionCustom.cs:27,5-27,39</DebuggingPaused> <DebuggingPaused>ExceptionIntercepted Exception_Custom.cs:27,5-27,39</DebuggingPaused>
<ProcessExited /> <ProcessExited />
</Test> </Test>
</DebuggerTests> </DebuggerTests>

8
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackOverflow.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Exception_StackOverflow.cs

@ -9,12 +9,12 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class StackOverflow public class Exception_StackOverflow
{ {
public static void Main() public static void Main()
{ {
System.Diagnostics.Debugger.Break(); System.Diagnostics.Debugger.Break();
new StackOverflow().Fun(0); new Exception_StackOverflow().Fun(0);
} }
public int Fun(int i) public int Fun(int i)
@ -30,9 +30,9 @@ namespace Debugger.Tests {
{ {
// [NUnit.Framework.Test] // [NUnit.Framework.Test]
// [NUnit.Framework.Ignore("Different behaviour in .NET 4")] // [NUnit.Framework.Ignore("Different behaviour in .NET 4")]
// public void StackOverflow() // public void Exception_StackOverflow()
// { // {
// StartTest("StackOverflow.cs"); // StartTest("Exception_StackOverflow.cs");
// //
// process.Continue(); // process.Continue();
// //ObjectDump("LastStackFrame", process.SelectedThread.MostRecentStackFrame); // //ObjectDump("LastStackFrame", process.SelectedThread.MostRecentStackFrame);

16
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/AstEval.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExpressionEvaluator.cs

@ -10,7 +10,7 @@ using System.Collections.Generic;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class AstEval public class ExpressionEvaluator
{ {
public static void Main() public static void Main()
{ {
@ -38,9 +38,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void AstEval() public void ExpressionEvaluator()
{ {
StartTest("AstEval.cs"); StartTest("ExpressionEvaluator.cs");
string input = @" string input = @"
b b
@ -105,8 +105,8 @@ namespace Debugger.Tests {
restultFmted = null; restultFmted = null;
} else { } else {
try { try {
Value result = ExpressionEvaluator.Evaluate(expr, SupportedLanguage.CSharp, process.SelectedStackFrame); Value result = Debugger.ExpressionEvaluator.Evaluate(expr, SupportedLanguage.CSharp, process.SelectedStackFrame);
restultFmted = ExpressionEvaluator.FormatValue(result); restultFmted = Debugger.ExpressionEvaluator.FormatValue(result);
} catch (GetValueException e) { } catch (GetValueException e) {
restultFmted = e.Message; restultFmted = e.Message;
} }
@ -125,11 +125,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="AstEval.cs"> name="ExpressionEvaluator.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>AstEval.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>ExpressionEvaluator.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break AstEval.cs:28,4-28,40</DebuggingPaused> <DebuggingPaused>Break ExpressionEvaluator.cs:28,4-28,40</DebuggingPaused>
<Eval> </Eval> <Eval> </Eval>
<Eval> b = 1 </Eval> <Eval> b = 1 </Eval>
<Eval> i = 4 </Eval> <Eval> i = 4 </Eval>

12
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MemoryReadWrite.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Process_MemoryReadWrite.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class MemoryReadWrite public class Process_MemoryReadWrite
{ {
public static void Main() public static void Main()
{ {
@ -26,9 +26,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void MemoryReadWrite() public void Process_MemoryReadWrite()
{ {
StartTest("MemoryReadWrite.cs"); StartTest("Process_MemoryReadWrite.cs");
ulong addrHello = process.SelectedStackFrame.GetLocalVariableValue("hello").Address; ulong addrHello = process.SelectedStackFrame.GetLocalVariableValue("hello").Address;
ulong addrWorld = process.SelectedStackFrame.GetLocalVariableValue("world").Address; ulong addrWorld = process.SelectedStackFrame.GetLocalVariableValue("world").Address;
@ -68,12 +68,12 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="MemoryReadWrite.cs"> name="Process_MemoryReadWrite.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>MemoryReadWrite.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>Process_MemoryReadWrite.exe (Has symbols)</ModuleLoaded>
<ModuleLoaded>System.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.dll (No symbols)</ModuleLoaded>
<DebuggingPaused>Break MemoryReadWrite.cs:18,4-18,40</DebuggingPaused> <DebuggingPaused>Break Process_MemoryReadWrite.cs:18,4-18,40</DebuggingPaused>
<hello>5 0 0 0 48 0 65 0 6C 0 6C 0 6F 0 </hello> <hello>5 0 0 0 48 0 65 0 6C 0 6C 0 6F 0 </hello>
<world>6 0 0 0 20 0 20 0 20 0 20 0 20 0 21 0 </world> <world>6 0 0 0 20 0 20 0 20 0 20 0 20 0 21 0 </world>
<ModuleLoaded>System.Configuration.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.Configuration.dll (No symbols)</ModuleLoaded>

24
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionArgumentVariables.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_Arguments.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class FunctionArgumentVariables public class StackFrame_Arguments
{ {
public static void Main() public static void Main()
{ {
@ -34,7 +34,7 @@ namespace Debugger.Tests.TestPrograms
VarArgs(); VarArgs();
VarArgs("A"); VarArgs("A");
VarArgs("A", "B"); VarArgs("A", "B");
new FunctionArgumentVariables().Function(1, "A"); new StackFrame_Arguments().Function(1, "A");
} }
static void StaticFunction(int i, static void StaticFunction(int i,
@ -69,9 +69,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void FunctionArgumentVariables() public void StackFrame_Arguments()
{ {
StartTest("FunctionArgumentVariables.cs"); StartTest("StackFrame_Arguments.cs");
for(int i = 0; i < 5; i++) { for(int i = 0; i < 5; i++) {
process.Continue(); process.Continue();
@ -88,12 +88,12 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="FunctionArgumentVariables.cs"> name="StackFrame_Arguments.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>FunctionArgumentVariables.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>StackFrame_Arguments.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break FunctionArgumentVariables.cs:16,4-16,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Arguments.cs:16,4-16,40</DebuggingPaused>
<DebuggingPaused>Break FunctionArgumentVariables.cs:51,4-51,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Arguments.cs:51,4-51,40</DebuggingPaused>
<Arguments <Arguments
Capacity="16" Capacity="16"
Count="9"> Count="9">
@ -164,7 +164,7 @@ namespace Debugger.Tests {
Type="System.Nullable&lt;System.Int32&gt;" /> Type="System.Nullable&lt;System.Int32&gt;" />
</Item> </Item>
</Arguments> </Arguments>
<DebuggingPaused>Break FunctionArgumentVariables.cs:57,4-57,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Arguments.cs:57,4-57,40</DebuggingPaused>
<Arguments <Arguments
Capacity="4" Capacity="4"
Count="1"> Count="1">
@ -179,7 +179,7 @@ namespace Debugger.Tests {
Type="System.String[]" /> Type="System.String[]" />
</Item> </Item>
</Arguments> </Arguments>
<DebuggingPaused>Break FunctionArgumentVariables.cs:57,4-57,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Arguments.cs:57,4-57,40</DebuggingPaused>
<Arguments <Arguments
Capacity="4" Capacity="4"
Count="1"> Count="1">
@ -195,7 +195,7 @@ namespace Debugger.Tests {
Type="System.String[]" /> Type="System.String[]" />
</Item> </Item>
</Arguments> </Arguments>
<DebuggingPaused>Break FunctionArgumentVariables.cs:57,4-57,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Arguments.cs:57,4-57,40</DebuggingPaused>
<Arguments <Arguments
Capacity="4" Capacity="4"
Count="1"> Count="1">
@ -211,7 +211,7 @@ namespace Debugger.Tests {
Type="System.String[]" /> Type="System.String[]" />
</Item> </Item>
</Arguments> </Arguments>
<DebuggingPaused>Break FunctionArgumentVariables.cs:62,4-62,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Arguments.cs:62,4-62,40</DebuggingPaused>
<Arguments <Arguments
Capacity="4" Capacity="4"
Count="2"> Count="2">

28
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Callstack.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_Callstack.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class Callstack public class StackFrame_Callstack
{ {
public static void Main() public static void Main()
{ {
@ -33,9 +33,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void Callstack() public void StackFrame_Callstack()
{ {
StartTest("Callstack.cs"); StartTest("StackFrame_Callstack.cs");
ObjectDump("Callstack", process.SelectedThread.GetCallstack()); ObjectDump("Callstack", process.SelectedThread.GetCallstack());
process.SelectedStackFrame.StepOut(); process.SelectedStackFrame.StepOut();
@ -53,11 +53,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="Callstack.cs"> name="StackFrame_Callstack.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>Callstack.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>StackFrame_Callstack.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Callstack.cs:26,4-26,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Callstack.cs:26,4-26,40</DebuggingPaused>
<Callstack> <Callstack>
<Item> <Item>
<StackFrame <StackFrame
@ -65,7 +65,7 @@ namespace Debugger.Tests {
FrameIndex="2" FrameIndex="2"
HasSymbols="True" HasSymbols="True"
MethodInfo="Sub2" MethodInfo="Sub2"
NextStatement="Callstack.cs:26,4-26,40" /> NextStatement="StackFrame_Callstack.cs:26,4-26,40" />
</Item> </Item>
<Item> <Item>
<StackFrame <StackFrame
@ -73,17 +73,17 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Sub1" MethodInfo="Sub1"
NextStatement="Callstack.cs:21,4-21,11" /> NextStatement="StackFrame_Callstack.cs:21,4-21,11" />
</Item> </Item>
<Item> <Item>
<StackFrame <StackFrame
ChainIndex="1" ChainIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Main" MethodInfo="Main"
NextStatement="Callstack.cs:16,4-16,11" /> NextStatement="StackFrame_Callstack.cs:16,4-16,11" />
</Item> </Item>
</Callstack> </Callstack>
<DebuggingPaused>StepComplete Callstack.cs:21,4-21,11</DebuggingPaused> <DebuggingPaused>StepComplete StackFrame_Callstack.cs:21,4-21,11</DebuggingPaused>
<Callstack> <Callstack>
<Item> <Item>
<StackFrame <StackFrame
@ -91,24 +91,24 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Sub1" MethodInfo="Sub1"
NextStatement="Callstack.cs:21,4-21,11" /> NextStatement="StackFrame_Callstack.cs:21,4-21,11" />
</Item> </Item>
<Item> <Item>
<StackFrame <StackFrame
ChainIndex="1" ChainIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Main" MethodInfo="Main"
NextStatement="Callstack.cs:16,4-16,11" /> NextStatement="StackFrame_Callstack.cs:16,4-16,11" />
</Item> </Item>
</Callstack> </Callstack>
<DebuggingPaused>StepComplete Callstack.cs:16,4-16,11</DebuggingPaused> <DebuggingPaused>StepComplete StackFrame_Callstack.cs:16,4-16,11</DebuggingPaused>
<Callstack> <Callstack>
<Item> <Item>
<StackFrame <StackFrame
ChainIndex="1" ChainIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Main" MethodInfo="Main"
NextStatement="Callstack.cs:16,4-16,11" /> NextStatement="StackFrame_Callstack.cs:16,4-16,11" />
</Item> </Item>
</Callstack> </Callstack>
<ProcessExited /> <ProcessExited />

32
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionLifetime.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_Lifetime.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class FunctionLifetime public class StackFrame_Lifetime
{ {
public static void Main() public static void Main()
{ {
@ -36,9 +36,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void FunctionLifetime() public void StackFrame_Lifetime()
{ {
StartTest("FunctionLifetime.cs"); StartTest("StackFrame_Lifetime.cs");
StackFrame stackFrame = process.SelectedStackFrame; StackFrame stackFrame = process.SelectedStackFrame;
ObjectDump("SelectedStackFrame", process.SelectedStackFrame); ObjectDump("SelectedStackFrame", process.SelectedStackFrame);
@ -66,11 +66,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="FunctionLifetime.cs"> name="StackFrame_Lifetime.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>FunctionLifetime.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>StackFrame_Lifetime.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break FunctionLifetime.cs:22,4-22,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Lifetime.cs:22,4-22,40</DebuggingPaused>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
ArgumentCount="1" ArgumentCount="1"
@ -78,9 +78,9 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Function" MethodInfo="Function"
NextStatement="FunctionLifetime.cs:22,4-22,40" /> NextStatement="StackFrame_Lifetime.cs:22,4-22,40" />
</SelectedStackFrame> </SelectedStackFrame>
<DebuggingPaused>Break FunctionLifetime.cs:29,4-29,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Lifetime.cs:29,4-29,40</DebuggingPaused>
<Old_StackFrame> <Old_StackFrame>
<StackFrame <StackFrame
ArgumentCount="1" ArgumentCount="1"
@ -88,7 +88,7 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Function" MethodInfo="Function"
NextStatement="FunctionLifetime.cs:23,4-23,18" /> NextStatement="StackFrame_Lifetime.cs:23,4-23,18" />
</Old_StackFrame> </Old_StackFrame>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
@ -96,9 +96,9 @@ namespace Debugger.Tests {
FrameIndex="2" FrameIndex="2"
HasSymbols="True" HasSymbols="True"
MethodInfo="SubFunction" MethodInfo="SubFunction"
NextStatement="FunctionLifetime.cs:29,4-29,40" /> NextStatement="StackFrame_Lifetime.cs:29,4-29,40" />
</SelectedStackFrame> </SelectedStackFrame>
<DebuggingPaused>Break FunctionLifetime.cs:24,4-24,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Lifetime.cs:24,4-24,40</DebuggingPaused>
<Old_StackFrame> <Old_StackFrame>
<StackFrame <StackFrame
ArgumentCount="1" ArgumentCount="1"
@ -106,7 +106,7 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Function" MethodInfo="Function"
NextStatement="FunctionLifetime.cs:24,4-24,40" /> NextStatement="StackFrame_Lifetime.cs:24,4-24,40" />
</Old_StackFrame> </Old_StackFrame>
<SelectedStackFrame> <SelectedStackFrame>
<StackFrame <StackFrame
@ -115,15 +115,15 @@ namespace Debugger.Tests {
FrameIndex="1" FrameIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Function" MethodInfo="Function"
NextStatement="FunctionLifetime.cs:24,4-24,40" /> NextStatement="StackFrame_Lifetime.cs:24,4-24,40" />
</SelectedStackFrame> </SelectedStackFrame>
<DebuggingPaused>Break FunctionLifetime.cs:17,4-17,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_Lifetime.cs:17,4-17,40</DebuggingPaused>
<Main> <Main>
<StackFrame <StackFrame
ChainIndex="1" ChainIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Main" MethodInfo="Main"
NextStatement="FunctionLifetime.cs:17,4-17,40" /> NextStatement="StackFrame_Lifetime.cs:17,4-17,40" />
</Main> </Main>
<Old_StackFrame> <Old_StackFrame>
<StackFrame <StackFrame
@ -140,7 +140,7 @@ namespace Debugger.Tests {
ChainIndex="1" ChainIndex="1"
HasSymbols="True" HasSymbols="True"
MethodInfo="Main" MethodInfo="Main"
NextStatement="FunctionLifetime.cs:17,4-17,40" /> NextStatement="StackFrame_Lifetime.cs:17,4-17,40" />
</SelectedStackFrame> </SelectedStackFrame>
<ProcessExited /> <ProcessExited />
</Test> </Test>

12
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionLocalVariables.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_LocalVariables.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class FunctionLocalVariables public class StackFrame_LocalVariables
{ {
public static void Main() public static void Main()
{ {
@ -28,9 +28,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void FunctionLocalVariables() public void StackFrame_LocalVariables()
{ {
StartTest("FunctionLocalVariables.cs"); StartTest("StackFrame_LocalVariables.cs");
ObjectDump("LocalVariables", process.SelectedStackFrame.GetLocalVariableValues()); ObjectDump("LocalVariables", process.SelectedStackFrame.GetLocalVariableValues());
@ -44,11 +44,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="FunctionLocalVariables.cs"> name="StackFrame_LocalVariables.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>FunctionLocalVariables.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>StackFrame_LocalVariables.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break FunctionLocalVariables.cs:21,4-21,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_LocalVariables.cs:21,4-21,40</DebuggingPaused>
<LocalVariables <LocalVariables
Capacity="8" Capacity="8"
Count="5"> Count="5">

22
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/SetIP.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_SetIP.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class SetIP public class StackFrame_SetIP
{ {
public static void Main() public static void Main()
{ {
@ -26,13 +26,13 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void SetIP() public void StackFrame_SetIP()
{ {
StartTest("SetIP.cs"); StartTest("StackFrame_SetIP.cs");
Assert.IsNotNull(process.SelectedStackFrame.CanSetIP("SetIP.cs", 16, 0)); Assert.IsNotNull(process.SelectedStackFrame.CanSetIP("StackFrame_SetIP.cs", 16, 0));
Assert.IsNull(process.SelectedStackFrame.CanSetIP("SetIP.cs", 100, 0)); Assert.IsNull(process.SelectedStackFrame.CanSetIP("StackFrame_SetIP.cs", 100, 0));
process.SelectedStackFrame.SetIP("SetIP.cs", 16, 0); process.SelectedStackFrame.SetIP("StackFrame_SetIP.cs", 16, 0);
process.Continue(); process.Continue();
Assert.AreEqual("1\r\n1\r\n", log); Assert.AreEqual("1\r\n1\r\n", log);
@ -46,18 +46,18 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="SetIP.cs"> name="StackFrame_SetIP.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>SetIP.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>StackFrame_SetIP.exe (Has symbols)</ModuleLoaded>
<ModuleLoaded>System.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>System.Configuration.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.Configuration.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>System.Xml.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.Xml.dll (No symbols)</ModuleLoaded>
<LogMessage>1\r\n</LogMessage> <LogMessage>1\r\n</LogMessage>
<DebuggingPaused>Break SetIP.cs:17,4-17,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_SetIP.cs:17,4-17,40</DebuggingPaused>
<DebuggingPaused>SetIP SetIP.cs:16,4-16,44</DebuggingPaused> <DebuggingPaused>SetIP StackFrame_SetIP.cs:16,4-16,44</DebuggingPaused>
<LogMessage>1\r\n</LogMessage> <LogMessage>1\r\n</LogMessage>
<DebuggingPaused>Break SetIP.cs:17,4-17,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_SetIP.cs:17,4-17,40</DebuggingPaused>
<ProcessExited /> <ProcessExited />
</Test> </Test>
</DebuggerTests> </DebuggerTests>

32
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionVariablesLifetime.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackFrame_VariablesLifetime.cs

@ -9,13 +9,13 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class FunctionVariablesLifetime public class StackFrame_VariablesLifetime
{ {
public int @class = 3; public int @class = 3;
public static void Main() public static void Main()
{ {
new FunctionVariablesLifetime().Function(1); new StackFrame_VariablesLifetime().Function(1);
System.Diagnostics.Debugger.Break(); // 5 System.Diagnostics.Debugger.Break(); // 5
} }
@ -41,14 +41,14 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void FunctionVariablesLifetime() public void StackFrame_VariablesLifetime()
{ {
Value argument = null; Value argument = null;
Value local = null; Value local = null;
Value localInSubFunction = null; Value localInSubFunction = null;
Value @class = null; Value @class = null;
StartTest("FunctionVariablesLifetime.cs"); // 1 - Enter program StartTest("StackFrame_VariablesLifetime.cs"); // 1 - Enter program
argument = process.SelectedStackFrame.GetArgumentValue(0); argument = process.SelectedStackFrame.GetArgumentValue(0);
local = process.SelectedStackFrame.GetLocalVariableValue("local"); local = process.SelectedStackFrame.GetLocalVariableValue("local");
@ -94,11 +94,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="FunctionVariablesLifetime.cs"> name="StackFrame_VariablesLifetime.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>FunctionVariablesLifetime.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>StackFrame_VariablesLifetime.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break FunctionVariablesLifetime.cs:25,4-25,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_VariablesLifetime.cs:25,4-25,40</DebuggingPaused>
<argument> <argument>
<Value <Value
AsString="1" AsString="1"
@ -116,11 +116,11 @@ namespace Debugger.Tests {
<_x0040_class> <_x0040_class>
<Value <Value
AsString="3" AsString="3"
Expression="((Debugger.Tests.TestPrograms.FunctionVariablesLifetime)(this)).@class" Expression="((Debugger.Tests.TestPrograms.StackFrame_VariablesLifetime)(this)).@class"
PrimitiveValue="3" PrimitiveValue="3"
Type="System.Int32" /> Type="System.Int32" />
</_x0040_class> </_x0040_class>
<DebuggingPaused>Break FunctionVariablesLifetime.cs:34,4-34,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_VariablesLifetime.cs:34,4-34,40</DebuggingPaused>
<argument> <argument>
<Value <Value
AsString="{Exception: Value is no longer valid}" AsString="{Exception: Value is no longer valid}"
@ -144,7 +144,7 @@ namespace Debugger.Tests {
<_x0040_class> <_x0040_class>
<Value <Value
AsString="{Exception: Value is no longer valid}" AsString="{Exception: Value is no longer valid}"
Expression="((Debugger.Tests.TestPrograms.FunctionVariablesLifetime)(this)).@class" Expression="((Debugger.Tests.TestPrograms.StackFrame_VariablesLifetime)(this)).@class"
IsInvalid="True" IsInvalid="True"
IsNull="{Exception: Value is no longer valid}" IsNull="{Exception: Value is no longer valid}"
IsReference="{Exception: Value is no longer valid}" IsReference="{Exception: Value is no longer valid}"
@ -158,7 +158,7 @@ namespace Debugger.Tests {
PrimitiveValue="4" PrimitiveValue="4"
Type="System.Int32" /> Type="System.Int32" />
</localInSubFunction> </localInSubFunction>
<DebuggingPaused>Break FunctionVariablesLifetime.cs:27,4-27,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_VariablesLifetime.cs:27,4-27,40</DebuggingPaused>
<argument> <argument>
<Value <Value
AsString="{Exception: Value is no longer valid}" AsString="{Exception: Value is no longer valid}"
@ -182,7 +182,7 @@ namespace Debugger.Tests {
<_x0040_class> <_x0040_class>
<Value <Value
AsString="{Exception: Value is no longer valid}" AsString="{Exception: Value is no longer valid}"
Expression="((Debugger.Tests.TestPrograms.FunctionVariablesLifetime)(this)).@class" Expression="((Debugger.Tests.TestPrograms.StackFrame_VariablesLifetime)(this)).@class"
IsInvalid="True" IsInvalid="True"
IsNull="{Exception: Value is no longer valid}" IsNull="{Exception: Value is no longer valid}"
IsReference="{Exception: Value is no longer valid}" IsReference="{Exception: Value is no longer valid}"
@ -199,7 +199,7 @@ namespace Debugger.Tests {
PrimitiveValue="{Exception: Value is no longer valid}" PrimitiveValue="{Exception: Value is no longer valid}"
Type="System.Int32" /> Type="System.Int32" />
</localInSubFunction> </localInSubFunction>
<DebuggingPaused>Break FunctionVariablesLifetime.cs:34,4-34,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_VariablesLifetime.cs:34,4-34,40</DebuggingPaused>
<argument> <argument>
<Value <Value
AsString="{Exception: Value is no longer valid}" AsString="{Exception: Value is no longer valid}"
@ -223,7 +223,7 @@ namespace Debugger.Tests {
<_x0040_class> <_x0040_class>
<Value <Value
AsString="{Exception: Value is no longer valid}" AsString="{Exception: Value is no longer valid}"
Expression="((Debugger.Tests.TestPrograms.FunctionVariablesLifetime)(this)).@class" Expression="((Debugger.Tests.TestPrograms.StackFrame_VariablesLifetime)(this)).@class"
IsInvalid="True" IsInvalid="True"
IsNull="{Exception: Value is no longer valid}" IsNull="{Exception: Value is no longer valid}"
IsReference="{Exception: Value is no longer valid}" IsReference="{Exception: Value is no longer valid}"
@ -247,7 +247,7 @@ namespace Debugger.Tests {
PrimitiveValue="4" PrimitiveValue="4"
Type="System.Int32" /> Type="System.Int32" />
</localInSubFunction_x0028_new_x0029_> </localInSubFunction_x0028_new_x0029_>
<DebuggingPaused>Break FunctionVariablesLifetime.cs:19,4-19,40</DebuggingPaused> <DebuggingPaused>Break StackFrame_VariablesLifetime.cs:19,4-19,40</DebuggingPaused>
<argument> <argument>
<Value <Value
AsString="{Exception: Value is no longer valid}" AsString="{Exception: Value is no longer valid}"
@ -271,7 +271,7 @@ namespace Debugger.Tests {
<_x0040_class> <_x0040_class>
<Value <Value
AsString="{Exception: Value is no longer valid}" AsString="{Exception: Value is no longer valid}"
Expression="((Debugger.Tests.TestPrograms.FunctionVariablesLifetime)(this)).@class" Expression="((Debugger.Tests.TestPrograms.StackFrame_VariablesLifetime)(this)).@class"
IsInvalid="True" IsInvalid="True"
IsNull="{Exception: Value is no longer valid}" IsNull="{Exception: Value is no longer valid}"
IsReference="{Exception: Value is no longer valid}" IsReference="{Exception: Value is no longer valid}"

30
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ThreadName.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Thread_Name.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class ThreadName public class Thread_Name
{ {
public static void Main() public static void Main()
{ {
@ -26,10 +26,10 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void ThreadName() public void Thread_Name()
{ {
debugger.Processes.Added += debugger_ProcessStarted; debugger.Processes.Added += debugger_ProcessStarted;
StartTest("ThreadName.cs"); StartTest("Thread_Name.cs");
debugger.Processes.Added -= debugger_ProcessStarted; debugger.Processes.Added -= debugger_ProcessStarted;
ObjectDump("Thread", process.SelectedThread); ObjectDump("Thread", process.SelectedThread);
process.Continue(); process.Continue();
@ -51,7 +51,7 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="ThreadName.cs"> name="Thread_Name.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ThreadStartedEvent> <ThreadStartedEvent>
@ -65,34 +65,34 @@ namespace Debugger.Tests {
Priority="Normal" Priority="Normal"
RuntimeValue=" = null" /> RuntimeValue=" = null" />
</ThreadStartedEvent> </ThreadStartedEvent>
<ModuleLoaded>ThreadName.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>Thread_Name.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ThreadName.cs:17,4-17,40</DebuggingPaused> <DebuggingPaused>Break Thread_Name.cs:17,4-17,40</DebuggingPaused>
<Thread> <Thread>
<Thread <Thread
CurrentExceptionType="0" CurrentExceptionType="0"
IsAtSafePoint="True" IsAtSafePoint="True"
IsInValidState="True" IsInValidState="True"
MostRecentStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main" MostRecentStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.ThreadName.Main" MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.Thread_Name.Main"
Name="" Name=""
OldestStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main" OldestStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main"
Priority="AboveNormal" Priority="AboveNormal"
RuntimeValue=" = {System.Threading.Thread}" RuntimeValue=" = {System.Threading.Thread}"
SelectedStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main" /> SelectedStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main" />
</Thread> </Thread>
<DebuggingPaused>Break ThreadName.cs:19,4-19,40</DebuggingPaused> <DebuggingPaused>Break Thread_Name.cs:19,4-19,40</DebuggingPaused>
<Thread> <Thread>
<Thread <Thread
CurrentExceptionType="0" CurrentExceptionType="0"
IsAtSafePoint="True" IsAtSafePoint="True"
IsInValidState="True" IsInValidState="True"
MostRecentStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main" MostRecentStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.ThreadName.Main" MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.Thread_Name.Main"
Name="ThreadName" Name="ThreadName"
OldestStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main" OldestStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main"
Priority="AboveNormal" Priority="AboveNormal"
RuntimeValue=" = {System.Threading.Thread}" RuntimeValue=" = {System.Threading.Thread}"
SelectedStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main" /> SelectedStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main" />
</Thread> </Thread>
<ThreadStartedEvent> <ThreadStartedEvent>
<Thread <Thread

12
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ArrayValue.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_Array.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class ArrayValue public class Value_Array
{ {
public static void Main() public static void Main()
{ {
@ -27,12 +27,12 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void ArrayValue() public void Value_Array()
{ {
ExpandProperties( ExpandProperties(
"DebugType.BaseType" "DebugType.BaseType"
); );
StartTest("ArrayValue.cs"); StartTest("Value_Array.cs");
Value array = process.SelectedStackFrame.GetLocalVariableValue("array"); Value array = process.SelectedStackFrame.GetLocalVariableValue("array");
ObjectDump("array", array); ObjectDump("array", array);
@ -50,11 +50,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="ArrayValue.cs"> name="Value_Array.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>ArrayValue.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>Value_Array.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ArrayValue.cs:20,4-20,40</DebuggingPaused> <DebuggingPaused>Break Value_Array.cs:20,4-20,40</DebuggingPaused>
<array> <array>
<Value <Value
ArrayDimensions="{5}" ArrayDimensions="{5}"

12
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/GenericDictionary.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_GenericDictionary.cs

@ -10,7 +10,7 @@ using System.Collections.Generic;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class GenericDictionary public class Value_GenericDictionary
{ {
public static void Main() public static void Main()
{ {
@ -30,9 +30,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void GenericDictionary() public void Value_GenericDictionary()
{ {
StartTest("GenericDictionary.cs"); StartTest("Value_GenericDictionary.cs");
ObjectDump("dict", process.SelectedStackFrame.GetLocalVariableValue("dict")); ObjectDump("dict", process.SelectedStackFrame.GetLocalVariableValue("dict"));
ObjectDump("dict members", process.SelectedStackFrame.GetLocalVariableValue("dict").GetMemberValues()); ObjectDump("dict members", process.SelectedStackFrame.GetLocalVariableValue("dict").GetMemberValues());
@ -47,11 +47,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="GenericDictionary.cs"> name="Value_GenericDictionary.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>GenericDictionary.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>Value_GenericDictionary.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break GenericDictionary.cs:21,4-21,40</DebuggingPaused> <DebuggingPaused>Break Value_GenericDictionary.cs:21,4-21,40</DebuggingPaused>
<dict> <dict>
<Value <Value
AsString="{System.Collections.Generic.Dictionary&lt;System.String,System.Int32&gt;}" AsString="{System.Collections.Generic.Dictionary&lt;System.String,System.Int32&gt;}"

36
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ObjectValue.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_Object.cs

@ -15,7 +15,7 @@ namespace Debugger.Tests.TestPrograms
string basePrivate = "b"; string basePrivate = "b";
} }
public class ObjectValue: BaseClass2 public class Value_Object: BaseClass2
{ {
string privateField = "c"; string privateField = "c";
public string publicFiled = "d"; public string publicFiled = "d";
@ -28,7 +28,7 @@ namespace Debugger.Tests.TestPrograms
public static void Main() public static void Main()
{ {
ObjectValue val = new ObjectValue(); Value_Object val = new Value_Object();
System.Diagnostics.Debugger.Break(); System.Diagnostics.Debugger.Break();
val.privateField = "new private"; val.privateField = "new private";
System.Diagnostics.Debugger.Break(); System.Diagnostics.Debugger.Break();
@ -43,11 +43,11 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void ObjectValue() public void Value_Object()
{ {
Value val = null; Value val = null;
StartTest("ObjectValue.cs"); StartTest("Value_Object.cs");
val = process.SelectedStackFrame.GetLocalVariableValue("val"); val = process.SelectedStackFrame.GetLocalVariableValue("val");
ObjectDump("val", val); ObjectDump("val", val);
@ -68,24 +68,24 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="ObjectValue.cs"> name="Value_Object.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>ObjectValue.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>Value_Object.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ObjectValue.cs:32,4-32,40</DebuggingPaused> <DebuggingPaused>Break Value_Object.cs:32,4-32,40</DebuggingPaused>
<val> <val>
<Value <Value
AsString="{Debugger.Tests.TestPrograms.ObjectValue}" AsString="{Debugger.Tests.TestPrograms.Value_Object}"
Expression="val" Expression="val"
IsReference="True" IsReference="True"
PrimitiveValue="{Exception: Value is not a primitive type}" PrimitiveValue="{Exception: Value is not a primitive type}"
Type="Debugger.Tests.TestPrograms.ObjectValue" /> Type="Debugger.Tests.TestPrograms.Value_Object" />
</val> </val>
<val_members> <val_members>
<Item> <Item>
<Value <Value
AsString="c" AsString="c"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).privateField" Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).privateField"
IsReference="True" IsReference="True"
PrimitiveValue="c" PrimitiveValue="c"
Type="System.String" /> Type="System.String" />
@ -93,7 +93,7 @@ namespace Debugger.Tests {
<Item> <Item>
<Value <Value
AsString="d" AsString="d"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).publicFiled" Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).publicFiled"
IsReference="True" IsReference="True"
PrimitiveValue="d" PrimitiveValue="d"
Type="System.String" /> Type="System.String" />
@ -117,26 +117,26 @@ namespace Debugger.Tests {
<Item> <Item>
<Value <Value
AsString="c" AsString="c"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).PublicProperty" Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).PublicProperty"
IsReference="True" IsReference="True"
PrimitiveValue="c" PrimitiveValue="c"
Type="System.String" /> Type="System.String" />
</Item> </Item>
</val_members> </val_members>
<DebuggingPaused>Break ObjectValue.cs:34,4-34,40</DebuggingPaused> <DebuggingPaused>Break Value_Object.cs:34,4-34,40</DebuggingPaused>
<val> <val>
<Value <Value
AsString="{Debugger.Tests.TestPrograms.ObjectValue}" AsString="{Debugger.Tests.TestPrograms.Value_Object}"
Expression="val" Expression="val"
IsReference="True" IsReference="True"
PrimitiveValue="{Exception: Value is not a primitive type}" PrimitiveValue="{Exception: Value is not a primitive type}"
Type="Debugger.Tests.TestPrograms.ObjectValue" /> Type="Debugger.Tests.TestPrograms.Value_Object" />
</val> </val>
<val_members> <val_members>
<Item> <Item>
<Value <Value
AsString="new private" AsString="new private"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).privateField" Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).privateField"
IsReference="True" IsReference="True"
PrimitiveValue="new private" PrimitiveValue="new private"
Type="System.String" /> Type="System.String" />
@ -144,7 +144,7 @@ namespace Debugger.Tests {
<Item> <Item>
<Value <Value
AsString="d" AsString="d"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).publicFiled" Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).publicFiled"
IsReference="True" IsReference="True"
PrimitiveValue="d" PrimitiveValue="d"
Type="System.String" /> Type="System.String" />
@ -168,7 +168,7 @@ namespace Debugger.Tests {
<Item> <Item>
<Value <Value
AsString="new private" AsString="new private"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).PublicProperty" Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).PublicProperty"
IsReference="True" IsReference="True"
PrimitiveValue="new private" PrimitiveValue="new private"
Type="System.String" /> Type="System.String" />

12
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/PrimitiveValue.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_Primitive.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class PrimitiveValue public class Value_Primitive
{ {
public static void Main() public static void Main()
{ {
@ -27,13 +27,13 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void PrimitiveValue() public void Value_Primitive()
{ {
ExpandProperties( ExpandProperties(
"Value.Type", "Value.Type",
"DebugType.BaseType" "DebugType.BaseType"
); );
StartTest("PrimitiveValue.cs"); StartTest("Value_Primitive.cs");
ObjectDump("locals", process.SelectedStackFrame.GetLocalVariableValues()); ObjectDump("locals", process.SelectedStackFrame.GetLocalVariableValues());
// Test System.Object access // Test System.Object access
@ -51,11 +51,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="PrimitiveValue.cs"> name="Value_Primitive.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>PrimitiveValue.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>Value_Primitive.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break PrimitiveValue.cs:20,4-20,40</DebuggingPaused> <DebuggingPaused>Break Value_Primitive.cs:20,4-20,40</DebuggingPaused>
<locals <locals
Capacity="4" Capacity="4"
Count="4"> Count="4">

4
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/PropertyVariable.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_Property.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class PropertyVariable public class Value_Property
{ {
string PrivateProperty { string PrivateProperty {
get { get {
@ -37,7 +37,7 @@ namespace Debugger.Tests.TestPrograms
public static void Main() public static void Main()
{ {
PropertyVariable var = new PropertyVariable(); Value_Property var = new Value_Property();
System.Diagnostics.Debugger.Break(); System.Diagnostics.Debugger.Break();
System.Diagnostics.Debugger.Break(); System.Diagnostics.Debugger.Break();
} }

2
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/PropertyVariableForm.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Value_PropertyVariableForm.cs

@ -10,7 +10,7 @@ using System.Windows.Forms;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class PropertyVariableForm public class Value_PropertyVariableForm
{ {
public static void Main() public static void Main()
{ {

12
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Break.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/_Break.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class Break public class _Break
{ {
public static void Main() public static void Main()
{ {
@ -23,9 +23,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void Break() public void _Break()
{ {
StartTest("Break.cs"); StartTest("_Break.cs");
EndTest(); EndTest();
} }
@ -37,11 +37,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="Break.cs"> name="_Break.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>Break.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>_Break.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Break.cs:16,4-16,40</DebuggingPaused> <DebuggingPaused>Break _Break.cs:16,4-16,40</DebuggingPaused>
<ProcessExited /> <ProcessExited />
</Test> </Test>
</DebuggerTests> </DebuggerTests>

10
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/HelloWorld.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/_HelloWorld.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class HelloWorld public class _HelloWorld
{ {
public static void Main() public static void Main()
{ {
@ -23,9 +23,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void HelloWorld() public void _HelloWorld()
{ {
StartTest("HelloWorld.cs", false); StartTest("_HelloWorld.cs", false);
process.WaitForExit(); process.WaitForExit();
@ -39,10 +39,10 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="HelloWorld.cs"> name="_HelloWorld.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>HelloWorld.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>_HelloWorld.exe (Has symbols)</ModuleLoaded>
<ModuleLoaded>System.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>System.Configuration.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.Configuration.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>System.Xml.dll (No symbols)</ModuleLoaded> <ModuleLoaded>System.Xml.dll (No symbols)</ModuleLoaded>

10
src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/SimpleProgram.cs → src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/_SimpleProgram.cs

@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms namespace Debugger.Tests.TestPrograms
{ {
public class SimpleProgram public class _SimpleProgram
{ {
public static void Main() public static void Main()
{ {
@ -23,9 +23,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests public partial class DebuggerTests
{ {
[NUnit.Framework.Test] [NUnit.Framework.Test]
public void SimpleProgram() public void _SimpleProgram()
{ {
StartTest("SimpleProgram.cs", false); StartTest("_SimpleProgram.cs", false);
process.WaitForExit(); process.WaitForExit();
@ -39,10 +39,10 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<DebuggerTests> <DebuggerTests>
<Test <Test
name="SimpleProgram.cs"> name="_SimpleProgram.cs">
<ProcessStarted /> <ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> <ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>SimpleProgram.exe (Has symbols)</ModuleLoaded> <ModuleLoaded>_SimpleProgram.exe (Has symbols)</ModuleLoaded>
<ProcessExited /> <ProcessExited />
</Test> </Test>
</DebuggerTests> </DebuggerTests>
Loading…
Cancel
Save