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ý 16 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 @@ @@ -46,43 +46,43 @@
<Compile Include="Src\DebuggerTests.cs" />
<Compile Include="Src\DebuggerTestsBase.cs" />
<Compile Include="Src\TestPrograms\AppDomains.cs" />
<Compile Include="Src\TestPrograms\ArrayValue.cs" />
<Compile Include="Src\TestPrograms\AstEval.cs" />
<Compile Include="Src\TestPrograms\Break.cs" />
<Compile Include="Src\TestPrograms\Value_Array.cs" />
<Compile Include="Src\TestPrograms\ExpressionEvaluator.cs" />
<Compile Include="Src\TestPrograms\_Break.cs" />
<Compile Include="Src\TestPrograms\Breakpoint.cs" />
<Compile Include="Src\TestPrograms\Callstack.cs" />
<Compile Include="Src\TestPrograms\CompilerGeneratedClasses.cs" />
<Compile Include="Src\TestPrograms\DebuggeeKilled.cs" />
<Compile Include="Src\TestPrograms\DebugTypes.cs" />
<Compile Include="Src\TestPrograms\DefinedTypes.cs" />
<Compile Include="Src\TestPrograms\StackFrame_Callstack.cs" />
<Compile Include="Src\TestPrograms\DebugType_CompilerGeneratedClasses.cs" />
<Compile Include="Src\TestPrograms\ControlFlow_DebuggeeKilled.cs" />
<Compile Include="Src\TestPrograms\DebugType.cs" />
<Compile Include="Src\TestPrograms\DebugType_DefinedTypes.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\FileRelease.cs" />
<Compile Include="Src\TestPrograms\FunctionArgumentVariables.cs" />
<Compile Include="Src\TestPrograms\FunctionLifetime.cs" />
<Compile Include="Src\TestPrograms\FunctionLocalVariables.cs" />
<Compile Include="Src\TestPrograms\FunctionVariablesLifetime.cs" />
<Compile Include="Src\TestPrograms\GenericDictionary.cs" />
<Compile Include="Src\TestPrograms\Generics.cs" />
<Compile Include="Src\TestPrograms\HelloWorld.cs" />
<Compile Include="Src\TestPrograms\MainThreadExit.cs" />
<Compile Include="Src\TestPrograms\MemoryReadWrite.cs" />
<Compile Include="Src\TestPrograms\Metadata.cs" />
<Compile Include="Src\TestPrograms\MetadataIdentity.cs" />
<Compile Include="Src\TestPrograms\ObjectValue.cs" />
<Compile Include="Src\TestPrograms\PrimitiveValue.cs" />
<Compile Include="Src\TestPrograms\PropertyVariable.cs" />
<Compile Include="Src\TestPrograms\PropertyVariableForm.cs" />
<Compile Include="Src\TestPrograms\SetIP.cs" />
<Compile Include="Src\TestPrograms\SimpleProgram.cs" />
<Compile Include="Src\TestPrograms\StackOverflow.cs" />
<Compile Include="Src\TestPrograms\Stepping.cs" />
<Compile Include="Src\TestPrograms\StackFrame_Arguments.cs" />
<Compile Include="Src\TestPrograms\StackFrame_Lifetime.cs" />
<Compile Include="Src\TestPrograms\StackFrame_LocalVariables.cs" />
<Compile Include="Src\TestPrograms\StackFrame_VariablesLifetime.cs" />
<Compile Include="Src\TestPrograms\Value_GenericDictionary.cs" />
<Compile Include="Src\TestPrograms\DebugType_Generics.cs" />
<Compile Include="Src\TestPrograms\_HelloWorld.cs" />
<Compile Include="Src\TestPrograms\ControlFlow_MainThreadExit.cs" />
<Compile Include="Src\TestPrograms\Process_MemoryReadWrite.cs" />
<Compile Include="Src\TestPrograms\DebugType_Access.cs" />
<Compile Include="Src\TestPrograms\DebugType_Identity.cs" />
<Compile Include="Src\TestPrograms\Value_Object.cs" />
<Compile Include="Src\TestPrograms\Value_Primitive.cs" />
<Compile Include="Src\TestPrograms\Value_Property.cs" />
<Compile Include="Src\TestPrograms\Value_PropertyVariableForm.cs" />
<Compile Include="Src\TestPrograms\StackFrame_SetIP.cs" />
<Compile Include="Src\TestPrograms\_SimpleProgram.cs" />
<Compile Include="Src\TestPrograms\Exception_StackOverflow.cs" />
<Compile Include="Src\TestPrograms\ControlFlow_Stepping.cs" />
<Compile Include="Src\TestPrograms\Symbols.cs" />
<Compile Include="Src\TestPrograms\TerminatePausedProcess.cs" />
<Compile Include="Src\TestPrograms\TerminateRunningProcess.cs" />
<Compile Include="Src\TestPrograms\ThreadName.cs" />
<Compile Include="Src\TestPrograms\ValueType.cs" />
<Compile Include="Src\TestPrograms\ControlFlow_TerminatePausedProcess.cs" />
<Compile Include="Src\TestPrograms\ControlFlow_TerminateRunningProcess.cs" />
<Compile Include="Src\TestPrograms\Thread_Name.cs" />
<Compile Include="Src\TestPrograms\DebugType_ValueType.cs" />
<Compile Include="Src\TestPrograms\_Template.cs" />
<EmbeddedResource Include="Src\TestPrograms\*.cs" />
</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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class DebuggeeKilled
public class ControlFlow_DebuggeeKilled
{
public static void Main()
{
@ -25,9 +25,9 @@ namespace Debugger.Tests { @@ -25,9 +25,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
// [NUnit.Framework.Test]
// public void DebuggeeKilled()
// public void ControlFlow_DebuggeeKilled()
// {
// StartTest("DebuggeeKilled.cs");
// StartTest("ControlFlow_DebuggeeKilled.cs");
// WaitForPause();
// Assert.AreNotEqual(null, 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; @@ -10,7 +10,7 @@ using System.Threading;
namespace Debugger.Tests.TestPrograms
{
public class MainThreadExit
public class ControlFlow_MainThreadExit
{
static ManualResetEvent doSomething = new ManualResetEvent(false);
@ -36,9 +36,9 @@ namespace Debugger.Tests { @@ -36,9 +36,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void MainThreadExit()
public void ControlFlow_MainThreadExit()
{
StartTest("MainThreadExit.cs");
StartTest("ControlFlow_MainThreadExit.cs");
ObjectDump("ThreadsBeforeExit", process.Threads);
process.AsyncContinue();
// Wait for the main thread to exit
@ -56,11 +56,11 @@ namespace Debugger.Tests { @@ -56,11 +56,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="MainThreadExit.cs">
name="ControlFlow_MainThreadExit.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>MainThreadExit.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break MainThreadExit.cs:24,4-24,40</DebuggingPaused>
<ModuleLoaded>ControlFlow_MainThreadExit.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ControlFlow_MainThreadExit.cs:24,4-24,40</DebuggingPaused>
<ThreadsBeforeExit
Count="2"
Selected="Thread Name = Suspended = False">
@ -69,13 +69,13 @@ namespace Debugger.Tests { @@ -69,13 +69,13 @@ namespace Debugger.Tests {
CurrentExceptionType="0"
IsAtSafePoint="True"
IsInValidState="True"
MostRecentStackFrame="Debugger.Tests.TestPrograms.MainThreadExit.Main"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.MainThreadExit.Main"
MostRecentStackFrame="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.Main"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.Main"
Name=""
OldestStackFrame="Debugger.Tests.TestPrograms.MainThreadExit.Main"
OldestStackFrame="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.Main"
Priority="Normal"
RuntimeValue=" = {System.Threading.Thread}"
SelectedStackFrame="Debugger.Tests.TestPrograms.MainThreadExit.Main" />
SelectedStackFrame="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.Main" />
</Item>
<Item>
<Thread
@ -83,14 +83,14 @@ namespace Debugger.Tests { @@ -83,14 +83,14 @@ namespace Debugger.Tests {
IsAtSafePoint="True"
IsInValidState="True"
MostRecentStackFrame="System.Threading.WaitHandle.InternalWaitOne"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.MainThreadExit.WaitForALongTime"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.WaitForALongTime"
Name="Worker thread"
OldestStackFrame="System.Threading.ThreadHelper.ThreadStart"
Priority="Normal"
RuntimeValue=" = {System.Threading.Thread}" />
</Item>
</ThreadsBeforeExit>
<DebuggingPaused>ForcedBreak MainThreadExit.cs:29,4-29,26</DebuggingPaused>
<DebuggingPaused>ForcedBreak ControlFlow_MainThreadExit.cs:29,4-29,26</DebuggingPaused>
<ThreadsAfterExit
Count="2"
Selected="Thread Name = Worker thread Suspended = False">
@ -107,12 +107,12 @@ namespace Debugger.Tests { @@ -107,12 +107,12 @@ namespace Debugger.Tests {
IsAtSafePoint="True"
IsInValidState="True"
MostRecentStackFrame="System.Threading.WaitHandle.InternalWaitOne"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.MainThreadExit.WaitForALongTime"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.WaitForALongTime"
Name="Worker thread"
OldestStackFrame="System.Threading.ThreadHelper.ThreadStart"
Priority="Normal"
RuntimeValue=" = {System.Threading.Thread}"
SelectedStackFrame="Debugger.Tests.TestPrograms.MainThreadExit.WaitForALongTime" />
SelectedStackFrame="Debugger.Tests.TestPrograms.ControlFlow_MainThreadExit.WaitForALongTime" />
</Item>
</ThreadsAfterExit>
<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; @@ -10,7 +10,7 @@ using System.Diagnostics;
namespace Debugger.Tests.TestPrograms
{
public class Stepping
public class ControlFlow_Stepping
{
[DebuggerStepThrough]
static void StepRoot()
@ -121,9 +121,9 @@ namespace Debugger.Tests { @@ -121,9 +121,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void Stepping()
public void ControlFlow_Stepping()
{
StartTest("Stepping.cs");
StartTest("ControlFlow_Stepping.cs");
SourcecodeSegment start = process.SelectedStackFrame.NextStatement;
@ -202,79 +202,79 @@ namespace Debugger.Tests { @@ -202,79 +202,79 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="Stepping.cs">
name="ControlFlow_Stepping.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>Stepping.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Stepping.cs:102,4-102,40</DebuggingPaused>
<ModuleLoaded>ControlFlow_Stepping.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ControlFlow_Stepping.cs:102,4-102,40</DebuggingPaused>
<Log>Starting run with JMC=True</Log>
<DebuggingPaused>SetIP Stepping.cs:103,4-103,37</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:27,27-27,28</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:30,25-30,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:106,4-106,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:107,4-107,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:108,4-108,21</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>SetIP ControlFlow_Stepping.cs:103,4-103,37</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:27,27-27,28</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:30,25-30,26</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:106,4-106,26</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:107,4-107,26</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:108,4-108,21</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:109,4-109,14</DebuggingPaused>
<ModuleLoaded>System.dll (No symbols)</ModuleLoaded>
<DebuggingPaused>StepComplete Stepping.cs:62,3-62,4</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:63,4-63,46</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:62,3-62,4</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:63,4-63,46</DebuggingPaused>
<ModuleLoaded>System.Configuration.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>System.Xml.dll (No symbols)</ModuleLoaded>
<LogMessage>ZigZag2</LogMessage>
<DebuggingPaused>StepComplete Stepping.cs:64,4-64,14</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:62,3-62,4</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:64,4-64,14</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:62,3-62,4</DebuggingPaused>
<LogMessage>ZigZag2</LogMessage>
<DebuggingPaused>StepComplete Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:91,50-91,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:94,50-94,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:111,3-111,4</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:91,50-91,51</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:94,50-94,51</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:111,3-111,4</DebuggingPaused>
<Log>Starting run with JMC=True</Log>
<DebuggingPaused>SetIP Stepping.cs:103,4-103,37</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:27,27-27,28</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:30,25-30,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:106,4-106,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:107,4-107,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:108,4-108,21</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:62,3-62,4</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:63,4-63,46</DebuggingPaused>
<DebuggingPaused>SetIP ControlFlow_Stepping.cs:103,4-103,37</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:27,27-27,28</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:30,25-30,26</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:106,4-106,26</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:107,4-107,26</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:108,4-108,21</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:62,3-62,4</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:63,4-63,46</DebuggingPaused>
<LogMessage>ZigZag2</LogMessage>
<DebuggingPaused>StepComplete Stepping.cs:64,4-64,14</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:62,3-62,4</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:64,4-64,14</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:62,3-62,4</DebuggingPaused>
<LogMessage>ZigZag2</LogMessage>
<DebuggingPaused>StepComplete Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:91,50-91,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:94,50-94,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:111,3-111,4</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:91,50-91,51</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:94,50-94,51</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:111,3-111,4</DebuggingPaused>
<Log>Starting run with JMC=False</Log>
<DebuggingPaused>SetIP Stepping.cs:103,4-103,37</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:30,25-30,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:106,4-106,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:107,4-107,26</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:108,4-108,21</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:109,4-109,14</DebuggingPaused>
<DebuggingPaused>SetIP ControlFlow_Stepping.cs:103,4-103,37</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:104,4-104,15</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:30,25-30,26</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:105,4-105,36</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:106,4-106,26</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:107,4-107,26</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:108,4-108,21</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:109,4-109,14</DebuggingPaused>
<LogMessage>ZigZag2</LogMessage>
<LogMessage>ZigZag2</LogMessage>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:91,50-91,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:94,50-94,51</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete Stepping.cs:111,3-111,4</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:91,50-91,51</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:94,50-94,51</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:110,4-110,35</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_Stepping.cs:111,3-111,4</DebuggingPaused>
<ProcessExited />
</Test>
</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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class TerminatePausedProcess
public class ControlFlow_TerminatePausedProcess
{
public static void Main()
{
@ -23,12 +23,12 @@ namespace Debugger.Tests { @@ -23,12 +23,12 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void TerminatePausedProcess()
public void ControlFlow_TerminatePausedProcess()
{
StartTest("TerminatePausedProcess.cs");
StartTest("ControlFlow_TerminatePausedProcess.cs");
process.Terminate();
StartTest("TerminatePausedProcess.cs");
StartTest("ControlFlow_TerminatePausedProcess.cs");
process.Terminate();
CheckXmlOutput();
@ -41,16 +41,16 @@ namespace Debugger.Tests { @@ -41,16 +41,16 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="TerminatePausedProcess.cs">
name="ControlFlow_TerminatePausedProcess.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>TerminatePausedProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break TerminatePausedProcess.cs:16,4-16,40</DebuggingPaused>
<ModuleLoaded>ControlFlow_TerminatePausedProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ControlFlow_TerminatePausedProcess.cs:16,4-16,40</DebuggingPaused>
<ProcessExited />
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>TerminatePausedProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break TerminatePausedProcess.cs:16,4-16,40</DebuggingPaused>
<ModuleLoaded>ControlFlow_TerminatePausedProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ControlFlow_TerminatePausedProcess.cs:16,4-16,40</DebuggingPaused>
<ProcessExited />
</Test>
</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; @@ -10,7 +10,7 @@ using System.Threading;
namespace Debugger.Tests.TestPrograms
{
public class TerminateRunningProcess
public class ControlFlow_TerminateRunningProcess
{
static ManualResetEvent doSomething = new ManualResetEvent(false);
@ -30,10 +30,10 @@ namespace Debugger.Tests { @@ -30,10 +30,10 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void TerminateRunningProcess()
public void ControlFlow_TerminateRunningProcess()
{
for(int i = 0; i < 2; i++) {
StartTest("TerminateRunningProcess.cs");
StartTest("ControlFlow_TerminateRunningProcess.cs");
process.SelectedStackFrame.StepOver();
process.Paused += delegate {
Assert.Fail("Should not have received any callbacks after Terminate");
@ -53,19 +53,19 @@ namespace Debugger.Tests { @@ -53,19 +53,19 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="TerminateRunningProcess.cs">
name="ControlFlow_TerminateRunningProcess.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>TerminateRunningProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break TerminateRunningProcess.cs:20,4-20,40</DebuggingPaused>
<DebuggingPaused>StepComplete TerminateRunningProcess.cs:21,4-21,26</DebuggingPaused>
<ModuleLoaded>ControlFlow_TerminateRunningProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ControlFlow_TerminateRunningProcess.cs:20,4-20,40</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_TerminateRunningProcess.cs:21,4-21,26</DebuggingPaused>
<Log>Calling terminate</Log>
<ProcessExited />
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>TerminateRunningProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break TerminateRunningProcess.cs:20,4-20,40</DebuggingPaused>
<DebuggingPaused>StepComplete TerminateRunningProcess.cs:21,4-21,26</DebuggingPaused>
<ModuleLoaded>ControlFlow_TerminateRunningProcess.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ControlFlow_TerminateRunningProcess.cs:20,4-20,40</DebuggingPaused>
<DebuggingPaused>StepComplete ControlFlow_TerminateRunningProcess.cs:21,4-21,26</DebuggingPaused>
<Log>Calling terminate</Log>
<ProcessExited />
</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; @@ -10,7 +10,7 @@ using System.Collections.Generic;
namespace Debugger.Tests.TestPrograms
{
public class DebugTypes
public class DebugType
{
public unsafe class MyClass
{
@ -100,13 +100,13 @@ namespace Debugger.Tests { @@ -100,13 +100,13 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void DebugTypes()
public void DebugType()
{
ExpandProperties(
"Value.Type",
"DebugType.ElementType"
);
StartTest("DebugTypes.cs");
StartTest("DebugType.cs");
ObjectDump("MyClassMemberts", process.SelectedStackFrame.GetLocalVariableValue("myClass").Type.GetMembers());
ObjectDump("LocalVariables", process.SelectedStackFrame.GetLocalVariableValues());
process.Continue();
@ -121,11 +121,11 @@ namespace Debugger.Tests { @@ -121,11 +121,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="DebugTypes.cs">
name="DebugType.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>DebugTypes.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DebugTypes.cs:76,4-76,40</DebuggingPaused>
<ModuleLoaded>DebugType.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DebugType.cs:76,4-76,40</DebuggingPaused>
<MyClassMemberts
Capacity="16"
Count="15">
@ -134,7 +134,7 @@ namespace Debugger.Tests { @@ -134,7 +134,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.i"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="i"
Type="System.Int32" />
</Item>
@ -143,7 +143,7 @@ namespace Debugger.Tests { @@ -143,7 +143,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.b"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="b"
Type="System.Boolean" />
</Item>
@ -152,7 +152,7 @@ namespace Debugger.Tests { @@ -152,7 +152,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.c"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="c"
Type="System.Char" />
</Item>
@ -161,7 +161,7 @@ namespace Debugger.Tests { @@ -161,7 +161,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.intPtr"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="intPtr"
Type="System.IntPtr" />
</Item>
@ -170,7 +170,7 @@ namespace Debugger.Tests { @@ -170,7 +170,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.pInt"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="pInt"
Type="System.Int32*" />
</Item>
@ -179,7 +179,7 @@ namespace Debugger.Tests { @@ -179,7 +179,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.pVoid"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="pVoid"
Type="System.Void*" />
</Item>
@ -188,7 +188,7 @@ namespace Debugger.Tests { @@ -188,7 +188,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.intArray"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="intArray"
Type="System.Int32[]" />
</Item>
@ -197,7 +197,7 @@ namespace Debugger.Tests { @@ -197,7 +197,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.intMultiArray"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="intMultiArray"
Type="System.Int32[,]" />
</Item>
@ -206,7 +206,7 @@ namespace Debugger.Tests { @@ -206,7 +206,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.intList"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="intList"
Type="System.Collections.Generic.List&lt;System.Int32&gt;" />
</Item>
@ -215,7 +215,7 @@ namespace Debugger.Tests { @@ -215,7 +215,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.intListArray"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="intListArray"
Type="System.Collections.Generic.List&lt;System.Int32&gt;[]" />
</Item>
@ -224,7 +224,7 @@ namespace Debugger.Tests { @@ -224,7 +224,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.point"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="point"
Type="Point" />
</Item>
@ -233,7 +233,7 @@ namespace Debugger.Tests { @@ -233,7 +233,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.myClass"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="myClass"
Type="MyClass" />
</Item>
@ -242,7 +242,7 @@ namespace Debugger.Tests { @@ -242,7 +242,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.fnPtr"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="fnPtr"
Type="Add" />
</Item>
@ -251,7 +251,7 @@ namespace Debugger.Tests { @@ -251,7 +251,7 @@ namespace Debugger.Tests {
DeclaringType="MyClass"
FullName="MyClass.Foo"
IsPublic="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="Foo"
ParameterCount="2"
ParameterTypes="{System.Object, System.Object[]}"
@ -263,7 +263,7 @@ namespace Debugger.Tests { @@ -263,7 +263,7 @@ namespace Debugger.Tests {
FullName="MyClass..ctor"
IsPublic="True"
IsSpecialName="True"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name=".ctor"
StepOver="True" />
</Item>
@ -284,7 +284,7 @@ namespace Debugger.Tests { @@ -284,7 +284,7 @@ namespace Debugger.Tests {
BaseType="System.Object"
FullName="MyClass"
Kind="Class"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="MyClass">
<ElementType>null</ElementType>
</DebugType>
@ -359,7 +359,7 @@ namespace Debugger.Tests { @@ -359,7 +359,7 @@ namespace Debugger.Tests {
BaseType="System.Object"
FullName="MyClass"
Kind="Class"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="MyClass">
<ElementType>null</ElementType>
</DebugType>
@ -633,7 +633,7 @@ namespace Debugger.Tests { @@ -633,7 +633,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType"
FullName="Point"
Kind="ValueType"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="Point">
<ElementType>null</ElementType>
</DebugType>
@ -659,7 +659,7 @@ namespace Debugger.Tests { @@ -659,7 +659,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType"
FullName="Point"
Kind="ValueType"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="Point">
<ElementType>null</ElementType>
</DebugType>
@ -702,7 +702,7 @@ namespace Debugger.Tests { @@ -702,7 +702,7 @@ namespace Debugger.Tests {
GenericArguments="{System.Int32}"
Interfaces="{MyInterface&lt;System.String,System.Collections.Generic.IEnumerable&lt;System.Int32&gt;,MyClass&gt;}"
Kind="Class"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="MyInterfaceImpl&lt;Int32&gt;">
<ElementType>null</ElementType>
</DebugType>
@ -723,7 +723,7 @@ namespace Debugger.Tests { @@ -723,7 +723,7 @@ namespace Debugger.Tests {
GenericArguments="{System.Int32}"
Interfaces="{MyInterface&lt;System.String,System.Collections.Generic.IEnumerable&lt;System.Int32&gt;,MyClass&gt;}"
Kind="Class"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="MyInterfaceImpl&lt;Int32&gt;">
<ElementType>null</ElementType>
</DebugType>
@ -731,7 +731,7 @@ namespace Debugger.Tests { @@ -731,7 +731,7 @@ namespace Debugger.Tests {
</Value>
</Item>
</LocalVariables>
<DebuggingPaused>Break DebugTypes.cs:93,4-93,40</DebuggingPaused>
<DebuggingPaused>Break DebugType.cs:93,4-93,40</DebuggingPaused>
<Arguments
Capacity="16"
Count="15">
@ -1002,7 +1002,7 @@ namespace Debugger.Tests { @@ -1002,7 +1002,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType"
FullName="Point"
Kind="ValueType"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="Point">
<ElementType>null</ElementType>
</DebugType>
@ -1020,7 +1020,7 @@ namespace Debugger.Tests { @@ -1020,7 +1020,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType"
FullName="Point"
Kind="ValueType"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="Point">
<ElementType>null</ElementType>
</DebugType>
@ -1046,7 +1046,7 @@ namespace Debugger.Tests { @@ -1046,7 +1046,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType"
FullName="Point"
Kind="ValueType"
Module="DebugTypes.exe"
Module="DebugType.exe"
Name="Point">
<ElementType>null</ElementType>
</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; @@ -14,7 +14,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class Metadata
public class DebugType_Access
{
private int privateField;
public int publicField;
@ -55,9 +55,9 @@ namespace Debugger.Tests { @@ -55,9 +55,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[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("Types", process.SelectedStackFrame.MethodInfo.Module.GetNamesOfDefinedTypes());
@ -72,219 +72,219 @@ namespace Debugger.Tests { @@ -72,219 +72,219 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="Metadata.cs">
name="DebugType_Access.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>Metadata.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Metadata.cs:39,4-39,40</DebuggingPaused>
<ModuleLoaded>DebugType_Access.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DebugType_Access.cs:39,4-39,40</DebuggingPaused>
<Members
Capacity="64"
Count="34">
<Item>
<FieldInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.privateField"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.privateField"
IsPrivate="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="privateField"
Type="System.Int32" />
</Item>
<Item>
<FieldInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.publicField"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.publicField"
IsPublic="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="publicField"
Type="System.Int32" />
</Item>
<Item>
<FieldInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.protectedField"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.protectedField"
IsProtected="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="protectedField"
Type="System.Int32" />
</Item>
<Item>
<FieldInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.internalField"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.internalField"
IsInternal="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="internalField"
Type="System.Int32" />
</Item>
<Item>
<FieldInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.staticField"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.staticField"
IsPrivate="True"
IsStatic="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="staticField"
Type="System.Int32" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.get_privateProperty"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.get_privateProperty"
IsPrivate="True"
IsSpecialName="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="get_privateProperty"
ReturnType="System.Int32" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.get_publicProperty"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.get_publicProperty"
IsPublic="True"
IsSpecialName="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="get_publicProperty"
ReturnType="System.Int32" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.get_protectedProperty"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.get_protectedProperty"
IsProtected="True"
IsSpecialName="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="get_protectedProperty"
ReturnType="System.Int32" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.get_internalProperty"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.get_internalProperty"
IsInternal="True"
IsSpecialName="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="get_internalProperty"
ReturnType="System.Int32" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.get_staticProperty"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.get_staticProperty"
IsPrivate="True"
IsSpecialName="True"
IsStatic="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="get_staticProperty"
ReturnType="System.Int32" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.privateMethod"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.privateMethod"
IsPrivate="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="privateMethod" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.publicMethod"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.publicMethod"
IsPublic="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="publicMethod" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.protectedMethod"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.protectedMethod"
IsProtected="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="protectedMethod" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.internalMethod"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.internalMethod"
IsInternal="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="internalMethod" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.staticMethod"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.staticMethod"
IsPrivate="True"
IsStatic="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="staticMethod" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.Main"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.Main"
IsPublic="True"
IsStatic="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="Main" />
</Item>
<Item>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata..ctor"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access..ctor"
IsPublic="True"
IsSpecialName="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name=".ctor"
StepOver="True" />
</Item>
<Item>
<PropertyInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.privateProperty"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.privateProperty"
GetMethod="get_privateProperty"
IsPrivate="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="privateProperty"
Type="System.Int32" />
</Item>
<Item>
<PropertyInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.publicProperty"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.publicProperty"
GetMethod="get_publicProperty"
IsPublic="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="publicProperty"
Type="System.Int32" />
</Item>
<Item>
<PropertyInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.protectedProperty"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.protectedProperty"
GetMethod="get_protectedProperty"
IsProtected="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="protectedProperty"
Type="System.Int32" />
</Item>
<Item>
<PropertyInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.internalProperty"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.internalProperty"
GetMethod="get_internalProperty"
IsInternal="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="internalProperty"
Type="System.Int32" />
</Item>
<Item>
<PropertyInfo
DeclaringType="Debugger.Tests.TestPrograms.Metadata"
FullName="Debugger.Tests.TestPrograms.Metadata.staticProperty"
DeclaringType="Debugger.Tests.TestPrograms.DebugType_Access"
FullName="Debugger.Tests.TestPrograms.DebugType_Access.staticProperty"
GetMethod="get_staticProperty"
IsPrivate="True"
IsStatic="True"
Module="Metadata.exe"
Module="DebugType_Access.exe"
Name="staticProperty"
Type="System.Int32" />
</Item>
@ -423,7 +423,7 @@ namespace Debugger.Tests { @@ -423,7 +423,7 @@ namespace Debugger.Tests {
<Types
Capacity="8"
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.Metadata3</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; @@ -10,13 +10,13 @@ using System.Collections.Generic;
namespace Debugger.Tests.TestPrograms
{
public class CompilerGeneratedClasses
public class DebugType_CompilerGeneratedClasses
{
delegate void IntDelegate(int i);
public static void Main()
{
new List<object>(new CompilerGeneratedClasses().MyEnum());
new List<object>(new DebugType_CompilerGeneratedClasses().MyEnum());
}
IEnumerable<object> MyEnum()
@ -67,9 +67,9 @@ namespace Debugger.Tests { @@ -67,9 +67,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void CompilerGeneratedClasses()
public void DebugType_CompilerGeneratedClasses()
{
StartTest("CompilerGeneratedClasses.cs");
StartTest("DebugType_CompilerGeneratedClasses.cs");
ObjectDump("YieldLocalVariables",
process.SelectedStackFrame.MethodInfo.LocalVariables.
Select(v => new { v.Name, Value = v.GetValue(process.SelectedStackFrame) })
@ -94,11 +94,11 @@ namespace Debugger.Tests { @@ -94,11 +94,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="CompilerGeneratedClasses.cs">
name="DebugType_CompilerGeneratedClasses.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>CompilerGeneratedClasses.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break CompilerGeneratedClasses.cs:35,5-35,41</DebuggingPaused>
<ModuleLoaded>DebugType_CompilerGeneratedClasses.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DebugType_CompilerGeneratedClasses.cs:35,5-35,41</DebuggingPaused>
<YieldLocalVariables>
<Item>
<AnonymousType
@ -121,7 +121,7 @@ namespace Debugger.Tests { @@ -121,7 +121,7 @@ namespace Debugger.Tests {
Value="(()(CS$&lt;&gt;8__locals5)).stateLessVar_NestedDelegRef = 203" />
</Item>
</YieldLocalVariables>
<DebuggingPaused>Break CompilerGeneratedClasses.cs:54,6-54,42</DebuggingPaused>
<DebuggingPaused>Break DebugType_CompilerGeneratedClasses.cs:54,6-54,42</DebuggingPaused>
<OutterDelegateLocalVariables>
<Item>
<AnonymousType
@ -166,10 +166,10 @@ namespace Debugger.Tests { @@ -166,10 +166,10 @@ namespace Debugger.Tests {
<Item>
<AnonymousType
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>
</OutterDelegateLocalVariables>
<DebuggingPaused>Break CompilerGeneratedClasses.cs:51,7-51,43</DebuggingPaused>
<DebuggingPaused>Break DebugType_CompilerGeneratedClasses.cs:51,7-51,43</DebuggingPaused>
<InnterDelegateLocalVariables>
<Item>
<AnonymousType
@ -209,7 +209,7 @@ namespace Debugger.Tests { @@ -209,7 +209,7 @@ namespace Debugger.Tests {
<Item>
<AnonymousType
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>
</InnterDelegateLocalVariables>
<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 { @@ -33,12 +33,12 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[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("Types", process.Modules["DefinedTypes.exe"].GetDefinedTypes());
ObjectDump("TypesAsString", process.Modules["DebugType_DefinedTypes.exe"].GetNamesOfDefinedTypes());
ObjectDump("Types", process.Modules["DebugType_DefinedTypes.exe"].GetDefinedTypes());
EndTest();
}
@ -50,11 +50,11 @@ namespace Debugger.Tests { @@ -50,11 +50,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="DefinedTypes.cs">
name="DebugType_DefinedTypes.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>DefinedTypes.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DefinedTypes.cs:16,4-16,40</DebuggingPaused>
<ModuleLoaded>DebugType_DefinedTypes.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DebugType_DefinedTypes.cs:16,4-16,40</DebuggingPaused>
<TypesAsString
Capacity="4"
Count="3">
@ -70,7 +70,7 @@ namespace Debugger.Tests { @@ -70,7 +70,7 @@ namespace Debugger.Tests {
BaseType="System.Object"
FullName="Debugger.Tests.TestPrograms.DefinedTypes_Class"
Kind="Class"
Module="DefinedTypes.exe"
Module="DebugType_DefinedTypes.exe"
Name="DefinedTypes_Class" />
</Item>
<Item>
@ -78,7 +78,7 @@ namespace Debugger.Tests { @@ -78,7 +78,7 @@ namespace Debugger.Tests {
BaseType="System.ValueType"
FullName="Debugger.Tests.TestPrograms.DefinedTypes_Struct"
Kind="ValueType"
Module="DefinedTypes.exe"
Module="DebugType_DefinedTypes.exe"
Name="DefinedTypes_Struct" />
</Item>
</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 { @@ -101,13 +101,13 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void Generics()
public void DebugType_Generics()
{
ExpandProperties(
"StackFrame.MethodInfo",
"MemberInfo.DeclaringType"
);
StartTest("Generics.cs");
StartTest("DebugType_Generics.cs");
for(int i = 0; i < 8; i++) {
ObjectDump("SelectedStackFrame", process.SelectedStackFrame);
@ -127,11 +127,11 @@ namespace Debugger.Tests { @@ -127,11 +127,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="Generics.cs">
name="DebugType_Generics.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>Generics.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Generics.cs:48,4-48,40</DebuggingPaused>
<ModuleLoaded>DebugType_Generics.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DebugType_Generics.cs:48,4-48,40</DebuggingPaused>
<SelectedStackFrame>
<StackFrame
ArgumentCount="2"
@ -139,13 +139,13 @@ namespace Debugger.Tests { @@ -139,13 +139,13 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="Metod"
NextStatement="Generics.cs:48,4-48,40">
NextStatement="DebugType_Generics.cs:48,4-48,40">
<MethodInfo>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.Metod"
IsPublic="True"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="Metod"
ParameterCount="2"
ParameterTypes="{System.Int32, System.String}"
@ -156,7 +156,7 @@ namespace Debugger.Tests { @@ -156,7 +156,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}"
Kind="Class"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="GenericClass&lt;Int32,String&gt;" />
</DeclaringType>
</MethodInfo>
@ -182,7 +182,7 @@ namespace Debugger.Tests { @@ -182,7 +182,7 @@ namespace Debugger.Tests {
Type="System.String" />
</Item>
</SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:54,4-54,40</DebuggingPaused>
<DebuggingPaused>Break DebugType_Generics.cs:54,4-54,40</DebuggingPaused>
<SelectedStackFrame>
<StackFrame
ArgumentCount="2"
@ -190,13 +190,13 @@ namespace Debugger.Tests { @@ -190,13 +190,13 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="GenericMethod"
NextStatement="Generics.cs:54,4-54,40">
NextStatement="DebugType_Generics.cs:54,4-54,40">
<MethodInfo>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.GenericMethod"
IsPublic="True"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="GenericMethod"
ParameterCount="2"
ParameterTypes="{System.Int32, System.String}"
@ -207,7 +207,7 @@ namespace Debugger.Tests { @@ -207,7 +207,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}"
Kind="Class"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="GenericClass&lt;Int32,String&gt;" />
</DeclaringType>
</MethodInfo>
@ -233,7 +233,7 @@ namespace Debugger.Tests { @@ -233,7 +233,7 @@ namespace Debugger.Tests {
Type="System.String" />
</Item>
</SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:60,4-60,40</DebuggingPaused>
<DebuggingPaused>Break DebugType_Generics.cs:60,4-60,40</DebuggingPaused>
<SelectedStackFrame>
<StackFrame
ArgumentCount="2"
@ -241,14 +241,14 @@ namespace Debugger.Tests { @@ -241,14 +241,14 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="StaticMetod"
NextStatement="Generics.cs:60,4-60,40">
NextStatement="DebugType_Generics.cs:60,4-60,40">
<MethodInfo>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.StaticMetod"
IsPublic="True"
IsStatic="True"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="StaticMetod"
ParameterCount="2"
ParameterTypes="{System.Int32, System.String}"
@ -259,7 +259,7 @@ namespace Debugger.Tests { @@ -259,7 +259,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}"
Kind="Class"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="GenericClass&lt;Int32,String&gt;" />
</DeclaringType>
</MethodInfo>
@ -285,7 +285,7 @@ namespace Debugger.Tests { @@ -285,7 +285,7 @@ namespace Debugger.Tests {
Type="System.String" />
</Item>
</SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:66,4-66,40</DebuggingPaused>
<DebuggingPaused>Break DebugType_Generics.cs:66,4-66,40</DebuggingPaused>
<SelectedStackFrame>
<StackFrame
ArgumentCount="2"
@ -293,14 +293,14 @@ namespace Debugger.Tests { @@ -293,14 +293,14 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="StaticGenericMethod"
NextStatement="Generics.cs:66,4-66,40">
NextStatement="DebugType_Generics.cs:66,4-66,40">
<MethodInfo>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;.StaticGenericMethod"
IsPublic="True"
IsStatic="True"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="StaticGenericMethod"
ParameterCount="2"
ParameterTypes="{System.Int32, System.String}"
@ -311,7 +311,7 @@ namespace Debugger.Tests { @@ -311,7 +311,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericClass&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}"
Kind="Class"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="GenericClass&lt;Int32,String&gt;" />
</DeclaringType>
</MethodInfo>
@ -337,7 +337,7 @@ namespace Debugger.Tests { @@ -337,7 +337,7 @@ namespace Debugger.Tests {
Type="System.String" />
</Item>
</SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:75,4-75,40</DebuggingPaused>
<DebuggingPaused>Break DebugType_Generics.cs:75,4-75,40</DebuggingPaused>
<SelectedStackFrame>
<StackFrame
ArgumentCount="2"
@ -345,13 +345,13 @@ namespace Debugger.Tests { @@ -345,13 +345,13 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="Metod"
NextStatement="Generics.cs:75,4-75,40">
NextStatement="DebugType_Generics.cs:75,4-75,40">
<MethodInfo>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.Metod"
IsPublic="True"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="Metod"
ParameterCount="2"
ParameterTypes="{System.Int32, System.String}"
@ -362,7 +362,7 @@ namespace Debugger.Tests { @@ -362,7 +362,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}"
Kind="ValueType"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="GenericStruct&lt;Int32,String&gt;" />
</DeclaringType>
</MethodInfo>
@ -388,7 +388,7 @@ namespace Debugger.Tests { @@ -388,7 +388,7 @@ namespace Debugger.Tests {
Type="System.String" />
</Item>
</SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:81,4-81,40</DebuggingPaused>
<DebuggingPaused>Break DebugType_Generics.cs:81,4-81,40</DebuggingPaused>
<SelectedStackFrame>
<StackFrame
ArgumentCount="2"
@ -396,13 +396,13 @@ namespace Debugger.Tests { @@ -396,13 +396,13 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="GenericMethod"
NextStatement="Generics.cs:81,4-81,40">
NextStatement="DebugType_Generics.cs:81,4-81,40">
<MethodInfo>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.GenericMethod"
IsPublic="True"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="GenericMethod"
ParameterCount="2"
ParameterTypes="{System.Int32, System.String}"
@ -413,7 +413,7 @@ namespace Debugger.Tests { @@ -413,7 +413,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}"
Kind="ValueType"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="GenericStruct&lt;Int32,String&gt;" />
</DeclaringType>
</MethodInfo>
@ -439,7 +439,7 @@ namespace Debugger.Tests { @@ -439,7 +439,7 @@ namespace Debugger.Tests {
Type="System.String" />
</Item>
</SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:87,4-87,40</DebuggingPaused>
<DebuggingPaused>Break DebugType_Generics.cs:87,4-87,40</DebuggingPaused>
<SelectedStackFrame>
<StackFrame
ArgumentCount="2"
@ -447,14 +447,14 @@ namespace Debugger.Tests { @@ -447,14 +447,14 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="StaticMetod"
NextStatement="Generics.cs:87,4-87,40">
NextStatement="DebugType_Generics.cs:87,4-87,40">
<MethodInfo>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.StaticMetod"
IsPublic="True"
IsStatic="True"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="StaticMetod"
ParameterCount="2"
ParameterTypes="{System.Int32, System.String}"
@ -465,7 +465,7 @@ namespace Debugger.Tests { @@ -465,7 +465,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}"
Kind="ValueType"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="GenericStruct&lt;Int32,String&gt;" />
</DeclaringType>
</MethodInfo>
@ -491,7 +491,7 @@ namespace Debugger.Tests { @@ -491,7 +491,7 @@ namespace Debugger.Tests {
Type="System.String" />
</Item>
</SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:93,4-93,40</DebuggingPaused>
<DebuggingPaused>Break DebugType_Generics.cs:93,4-93,40</DebuggingPaused>
<SelectedStackFrame>
<StackFrame
ArgumentCount="2"
@ -499,14 +499,14 @@ namespace Debugger.Tests { @@ -499,14 +499,14 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="StaticGenericMethod"
NextStatement="Generics.cs:93,4-93,40">
NextStatement="DebugType_Generics.cs:93,4-93,40">
<MethodInfo>
<MethodInfo
DeclaringType="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;.StaticGenericMethod"
IsPublic="True"
IsStatic="True"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="StaticGenericMethod"
ParameterCount="2"
ParameterTypes="{System.Int32, System.String}"
@ -517,7 +517,7 @@ namespace Debugger.Tests { @@ -517,7 +517,7 @@ namespace Debugger.Tests {
FullName="Debugger.Tests.TestPrograms.GenericStruct&lt;System.Int32,System.String&gt;"
GenericArguments="{System.Int32, System.String}"
Kind="ValueType"
Module="Generics.exe"
Module="DebugType_Generics.exe"
Name="GenericStruct&lt;Int32,String&gt;" />
</DeclaringType>
</MethodInfo>
@ -543,7 +543,7 @@ namespace Debugger.Tests { @@ -543,7 +543,7 @@ namespace Debugger.Tests {
Type="System.String" />
</Item>
</SelectedStackFrame-GetArguments>
<DebuggingPaused>Break Generics.cs:28,4-28,40</DebuggingPaused>
<DebuggingPaused>Break DebugType_Generics.cs:28,4-28,40</DebuggingPaused>
<Prop>
<Value
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; @@ -9,11 +9,11 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class MetadataIdentity
public class DebugType_Identity
{
public static void Main()
{
new MetadataIdentity().Func();
new DebugType_Identity().Func();
}
public void Func()
@ -32,9 +32,9 @@ namespace Debugger.Tests { @@ -32,9 +32,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void MetadataIdentity()
public void DebugType_Identity()
{
StartTest("MetadataIdentity.cs");
StartTest("DebugType_Identity.cs");
DebugType type = process.SelectedStackFrame.GetThisValue().Type;
MethodInfo mainMethod = process.SelectedStackFrame.MethodInfo;
@ -53,12 +53,12 @@ namespace Debugger.Tests { @@ -53,12 +53,12 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="MetadataIdentity.cs">
name="DebugType_Identity.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>MetadataIdentity.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break MetadataIdentity.cs:21,4-21,40</DebuggingPaused>
<DebuggingPaused>Break MetadataIdentity.cs:22,4-22,40</DebuggingPaused>
<ModuleLoaded>DebugType_Identity.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DebugType_Identity.cs:21,4-21,40</DebuggingPaused>
<DebuggingPaused>Break DebugType_Identity.cs:22,4-22,40</DebuggingPaused>
<ProcessExited />
</Test>
</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; @@ -9,11 +9,11 @@ using System;
namespace Debugger.Tests
{
public struct ValueType
public struct DebugType_ValueType
{
public static void Main()
{
new ValueType().Fun();
new DebugType_ValueType().Fun();
}
public void Fun()
@ -28,13 +28,13 @@ namespace Debugger.Tests { @@ -28,13 +28,13 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void ValueType()
public void DebugType_ValueType()
{
ExpandProperties(
"Value.Type",
"DebugType.BaseType"
);
StartTest("ValueType.cs");
StartTest("DebugType_ValueType.cs");
ObjectDump("this", process.SelectedStackFrame.GetThisValue());
@ -48,24 +48,24 @@ namespace Debugger.Tests { @@ -48,24 +48,24 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="ValueType.cs">
name="DebugType_ValueType.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>ValueType.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ValueType.cs:21,4-21,40</DebuggingPaused>
<ModuleLoaded>DebugType_ValueType.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break DebugType_ValueType.cs:21,4-21,40</DebuggingPaused>
<this>
<Value
AsString="{Debugger.Tests.ValueType}"
AsString="{Debugger.Tests.DebugType_ValueType}"
Expression="this"
PrimitiveValue="{Exception: Value is not a primitive type}"
Type="Debugger.Tests.ValueType">
Type="Debugger.Tests.DebugType_ValueType">
<Type>
<DebugType
BaseType="System.ValueType"
FullName="Debugger.Tests.ValueType"
FullName="Debugger.Tests.DebugType_ValueType"
Kind="ValueType"
Module="ValueType.exe"
Name="ValueType">
Module="DebugType_ValueType.exe"
Name="DebugType_ValueType">
<BaseType>
<DebugType
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 @@ -17,7 +17,7 @@ namespace Debugger.Tests.TestPrograms
}
}
public class ExceptionCustom
public class Exception_Custom
{
public static void Main()
{
@ -35,9 +35,9 @@ namespace Debugger.Tests { @@ -35,9 +35,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void ExceptionCustom()
public void Exception_Custom()
{
StartTest("ExceptionCustom.cs");
StartTest("Exception_Custom.cs");
process.Terminate();
EndTest();
}
@ -49,12 +49,12 @@ namespace Debugger.Tests { @@ -49,12 +49,12 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="ExceptionCustom.cs">
name="Exception_Custom.cs">
<ProcessStarted />
<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>
<DebuggingPaused>ExceptionIntercepted ExceptionCustom.cs:27,5-27,39</DebuggingPaused>
<DebuggingPaused>ExceptionIntercepted Exception_Custom.cs:27,5-27,39</DebuggingPaused>
<ProcessExited />
</Test>
</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; @@ -9,12 +9,12 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class StackOverflow
public class Exception_StackOverflow
{
public static void Main()
{
System.Diagnostics.Debugger.Break();
new StackOverflow().Fun(0);
new Exception_StackOverflow().Fun(0);
}
public int Fun(int i)
@ -30,9 +30,9 @@ namespace Debugger.Tests { @@ -30,9 +30,9 @@ namespace Debugger.Tests {
{
// [NUnit.Framework.Test]
// [NUnit.Framework.Ignore("Different behaviour in .NET 4")]
// public void StackOverflow()
// public void Exception_StackOverflow()
// {
// StartTest("StackOverflow.cs");
// StartTest("Exception_StackOverflow.cs");
//
// process.Continue();
// //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; @@ -10,7 +10,7 @@ using System.Collections.Generic;
namespace Debugger.Tests.TestPrograms
{
public class AstEval
public class ExpressionEvaluator
{
public static void Main()
{
@ -38,9 +38,9 @@ namespace Debugger.Tests { @@ -38,9 +38,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void AstEval()
public void ExpressionEvaluator()
{
StartTest("AstEval.cs");
StartTest("ExpressionEvaluator.cs");
string input = @"
b
@ -105,8 +105,8 @@ namespace Debugger.Tests { @@ -105,8 +105,8 @@ namespace Debugger.Tests {
restultFmted = null;
} else {
try {
Value result = ExpressionEvaluator.Evaluate(expr, SupportedLanguage.CSharp, process.SelectedStackFrame);
restultFmted = ExpressionEvaluator.FormatValue(result);
Value result = Debugger.ExpressionEvaluator.Evaluate(expr, SupportedLanguage.CSharp, process.SelectedStackFrame);
restultFmted = Debugger.ExpressionEvaluator.FormatValue(result);
} catch (GetValueException e) {
restultFmted = e.Message;
}
@ -125,11 +125,11 @@ namespace Debugger.Tests { @@ -125,11 +125,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="AstEval.cs">
name="ExpressionEvaluator.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>AstEval.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break AstEval.cs:28,4-28,40</DebuggingPaused>
<ModuleLoaded>ExpressionEvaluator.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ExpressionEvaluator.cs:28,4-28,40</DebuggingPaused>
<Eval> </Eval>
<Eval> b = 1 </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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class MemoryReadWrite
public class Process_MemoryReadWrite
{
public static void Main()
{
@ -26,9 +26,9 @@ namespace Debugger.Tests { @@ -26,9 +26,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[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 addrWorld = process.SelectedStackFrame.GetLocalVariableValue("world").Address;
@ -68,12 +68,12 @@ namespace Debugger.Tests { @@ -68,12 +68,12 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="MemoryReadWrite.cs">
name="Process_MemoryReadWrite.cs">
<ProcessStarted />
<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>
<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>
<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>

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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class FunctionArgumentVariables
public class StackFrame_Arguments
{
public static void Main()
{
@ -34,7 +34,7 @@ namespace Debugger.Tests.TestPrograms @@ -34,7 +34,7 @@ namespace Debugger.Tests.TestPrograms
VarArgs();
VarArgs("A");
VarArgs("A", "B");
new FunctionArgumentVariables().Function(1, "A");
new StackFrame_Arguments().Function(1, "A");
}
static void StaticFunction(int i,
@ -69,9 +69,9 @@ namespace Debugger.Tests { @@ -69,9 +69,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void FunctionArgumentVariables()
public void StackFrame_Arguments()
{
StartTest("FunctionArgumentVariables.cs");
StartTest("StackFrame_Arguments.cs");
for(int i = 0; i < 5; i++) {
process.Continue();
@ -88,12 +88,12 @@ namespace Debugger.Tests { @@ -88,12 +88,12 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="FunctionArgumentVariables.cs">
name="StackFrame_Arguments.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>FunctionArgumentVariables.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break FunctionArgumentVariables.cs:16,4-16,40</DebuggingPaused>
<DebuggingPaused>Break FunctionArgumentVariables.cs:51,4-51,40</DebuggingPaused>
<ModuleLoaded>StackFrame_Arguments.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break StackFrame_Arguments.cs:16,4-16,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_Arguments.cs:51,4-51,40</DebuggingPaused>
<Arguments
Capacity="16"
Count="9">
@ -164,7 +164,7 @@ namespace Debugger.Tests { @@ -164,7 +164,7 @@ namespace Debugger.Tests {
Type="System.Nullable&lt;System.Int32&gt;" />
</Item>
</Arguments>
<DebuggingPaused>Break FunctionArgumentVariables.cs:57,4-57,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_Arguments.cs:57,4-57,40</DebuggingPaused>
<Arguments
Capacity="4"
Count="1">
@ -179,7 +179,7 @@ namespace Debugger.Tests { @@ -179,7 +179,7 @@ namespace Debugger.Tests {
Type="System.String[]" />
</Item>
</Arguments>
<DebuggingPaused>Break FunctionArgumentVariables.cs:57,4-57,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_Arguments.cs:57,4-57,40</DebuggingPaused>
<Arguments
Capacity="4"
Count="1">
@ -195,7 +195,7 @@ namespace Debugger.Tests { @@ -195,7 +195,7 @@ namespace Debugger.Tests {
Type="System.String[]" />
</Item>
</Arguments>
<DebuggingPaused>Break FunctionArgumentVariables.cs:57,4-57,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_Arguments.cs:57,4-57,40</DebuggingPaused>
<Arguments
Capacity="4"
Count="1">
@ -211,7 +211,7 @@ namespace Debugger.Tests { @@ -211,7 +211,7 @@ namespace Debugger.Tests {
Type="System.String[]" />
</Item>
</Arguments>
<DebuggingPaused>Break FunctionArgumentVariables.cs:62,4-62,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_Arguments.cs:62,4-62,40</DebuggingPaused>
<Arguments
Capacity="4"
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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class Callstack
public class StackFrame_Callstack
{
public static void Main()
{
@ -33,9 +33,9 @@ namespace Debugger.Tests { @@ -33,9 +33,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void Callstack()
public void StackFrame_Callstack()
{
StartTest("Callstack.cs");
StartTest("StackFrame_Callstack.cs");
ObjectDump("Callstack", process.SelectedThread.GetCallstack());
process.SelectedStackFrame.StepOut();
@ -53,11 +53,11 @@ namespace Debugger.Tests { @@ -53,11 +53,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="Callstack.cs">
name="StackFrame_Callstack.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>Callstack.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Callstack.cs:26,4-26,40</DebuggingPaused>
<ModuleLoaded>StackFrame_Callstack.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break StackFrame_Callstack.cs:26,4-26,40</DebuggingPaused>
<Callstack>
<Item>
<StackFrame
@ -65,7 +65,7 @@ namespace Debugger.Tests { @@ -65,7 +65,7 @@ namespace Debugger.Tests {
FrameIndex="2"
HasSymbols="True"
MethodInfo="Sub2"
NextStatement="Callstack.cs:26,4-26,40" />
NextStatement="StackFrame_Callstack.cs:26,4-26,40" />
</Item>
<Item>
<StackFrame
@ -73,17 +73,17 @@ namespace Debugger.Tests { @@ -73,17 +73,17 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="Sub1"
NextStatement="Callstack.cs:21,4-21,11" />
NextStatement="StackFrame_Callstack.cs:21,4-21,11" />
</Item>
<Item>
<StackFrame
ChainIndex="1"
HasSymbols="True"
MethodInfo="Main"
NextStatement="Callstack.cs:16,4-16,11" />
NextStatement="StackFrame_Callstack.cs:16,4-16,11" />
</Item>
</Callstack>
<DebuggingPaused>StepComplete Callstack.cs:21,4-21,11</DebuggingPaused>
<DebuggingPaused>StepComplete StackFrame_Callstack.cs:21,4-21,11</DebuggingPaused>
<Callstack>
<Item>
<StackFrame
@ -91,24 +91,24 @@ namespace Debugger.Tests { @@ -91,24 +91,24 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="Sub1"
NextStatement="Callstack.cs:21,4-21,11" />
NextStatement="StackFrame_Callstack.cs:21,4-21,11" />
</Item>
<Item>
<StackFrame
ChainIndex="1"
HasSymbols="True"
MethodInfo="Main"
NextStatement="Callstack.cs:16,4-16,11" />
NextStatement="StackFrame_Callstack.cs:16,4-16,11" />
</Item>
</Callstack>
<DebuggingPaused>StepComplete Callstack.cs:16,4-16,11</DebuggingPaused>
<DebuggingPaused>StepComplete StackFrame_Callstack.cs:16,4-16,11</DebuggingPaused>
<Callstack>
<Item>
<StackFrame
ChainIndex="1"
HasSymbols="True"
MethodInfo="Main"
NextStatement="Callstack.cs:16,4-16,11" />
NextStatement="StackFrame_Callstack.cs:16,4-16,11" />
</Item>
</Callstack>
<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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class FunctionLifetime
public class StackFrame_Lifetime
{
public static void Main()
{
@ -36,9 +36,9 @@ namespace Debugger.Tests { @@ -36,9 +36,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void FunctionLifetime()
public void StackFrame_Lifetime()
{
StartTest("FunctionLifetime.cs");
StartTest("StackFrame_Lifetime.cs");
StackFrame stackFrame = process.SelectedStackFrame;
ObjectDump("SelectedStackFrame", process.SelectedStackFrame);
@ -66,11 +66,11 @@ namespace Debugger.Tests { @@ -66,11 +66,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="FunctionLifetime.cs">
name="StackFrame_Lifetime.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>FunctionLifetime.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break FunctionLifetime.cs:22,4-22,40</DebuggingPaused>
<ModuleLoaded>StackFrame_Lifetime.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break StackFrame_Lifetime.cs:22,4-22,40</DebuggingPaused>
<SelectedStackFrame>
<StackFrame
ArgumentCount="1"
@ -78,9 +78,9 @@ namespace Debugger.Tests { @@ -78,9 +78,9 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="Function"
NextStatement="FunctionLifetime.cs:22,4-22,40" />
NextStatement="StackFrame_Lifetime.cs:22,4-22,40" />
</SelectedStackFrame>
<DebuggingPaused>Break FunctionLifetime.cs:29,4-29,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_Lifetime.cs:29,4-29,40</DebuggingPaused>
<Old_StackFrame>
<StackFrame
ArgumentCount="1"
@ -88,7 +88,7 @@ namespace Debugger.Tests { @@ -88,7 +88,7 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="Function"
NextStatement="FunctionLifetime.cs:23,4-23,18" />
NextStatement="StackFrame_Lifetime.cs:23,4-23,18" />
</Old_StackFrame>
<SelectedStackFrame>
<StackFrame
@ -96,9 +96,9 @@ namespace Debugger.Tests { @@ -96,9 +96,9 @@ namespace Debugger.Tests {
FrameIndex="2"
HasSymbols="True"
MethodInfo="SubFunction"
NextStatement="FunctionLifetime.cs:29,4-29,40" />
NextStatement="StackFrame_Lifetime.cs:29,4-29,40" />
</SelectedStackFrame>
<DebuggingPaused>Break FunctionLifetime.cs:24,4-24,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_Lifetime.cs:24,4-24,40</DebuggingPaused>
<Old_StackFrame>
<StackFrame
ArgumentCount="1"
@ -106,7 +106,7 @@ namespace Debugger.Tests { @@ -106,7 +106,7 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="Function"
NextStatement="FunctionLifetime.cs:24,4-24,40" />
NextStatement="StackFrame_Lifetime.cs:24,4-24,40" />
</Old_StackFrame>
<SelectedStackFrame>
<StackFrame
@ -115,15 +115,15 @@ namespace Debugger.Tests { @@ -115,15 +115,15 @@ namespace Debugger.Tests {
FrameIndex="1"
HasSymbols="True"
MethodInfo="Function"
NextStatement="FunctionLifetime.cs:24,4-24,40" />
NextStatement="StackFrame_Lifetime.cs:24,4-24,40" />
</SelectedStackFrame>
<DebuggingPaused>Break FunctionLifetime.cs:17,4-17,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_Lifetime.cs:17,4-17,40</DebuggingPaused>
<Main>
<StackFrame
ChainIndex="1"
HasSymbols="True"
MethodInfo="Main"
NextStatement="FunctionLifetime.cs:17,4-17,40" />
NextStatement="StackFrame_Lifetime.cs:17,4-17,40" />
</Main>
<Old_StackFrame>
<StackFrame
@ -140,7 +140,7 @@ namespace Debugger.Tests { @@ -140,7 +140,7 @@ namespace Debugger.Tests {
ChainIndex="1"
HasSymbols="True"
MethodInfo="Main"
NextStatement="FunctionLifetime.cs:17,4-17,40" />
NextStatement="StackFrame_Lifetime.cs:17,4-17,40" />
</SelectedStackFrame>
<ProcessExited />
</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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class FunctionLocalVariables
public class StackFrame_LocalVariables
{
public static void Main()
{
@ -28,9 +28,9 @@ namespace Debugger.Tests { @@ -28,9 +28,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void FunctionLocalVariables()
public void StackFrame_LocalVariables()
{
StartTest("FunctionLocalVariables.cs");
StartTest("StackFrame_LocalVariables.cs");
ObjectDump("LocalVariables", process.SelectedStackFrame.GetLocalVariableValues());
@ -44,11 +44,11 @@ namespace Debugger.Tests { @@ -44,11 +44,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="FunctionLocalVariables.cs">
name="StackFrame_LocalVariables.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>FunctionLocalVariables.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break FunctionLocalVariables.cs:21,4-21,40</DebuggingPaused>
<ModuleLoaded>StackFrame_LocalVariables.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break StackFrame_LocalVariables.cs:21,4-21,40</DebuggingPaused>
<LocalVariables
Capacity="8"
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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class SetIP
public class StackFrame_SetIP
{
public static void Main()
{
@ -26,13 +26,13 @@ namespace Debugger.Tests { @@ -26,13 +26,13 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[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.IsNull(process.SelectedStackFrame.CanSetIP("SetIP.cs", 100, 0));
process.SelectedStackFrame.SetIP("SetIP.cs", 16, 0);
Assert.IsNotNull(process.SelectedStackFrame.CanSetIP("StackFrame_SetIP.cs", 16, 0));
Assert.IsNull(process.SelectedStackFrame.CanSetIP("StackFrame_SetIP.cs", 100, 0));
process.SelectedStackFrame.SetIP("StackFrame_SetIP.cs", 16, 0);
process.Continue();
Assert.AreEqual("1\r\n1\r\n", log);
@ -46,18 +46,18 @@ namespace Debugger.Tests { @@ -46,18 +46,18 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="SetIP.cs">
name="StackFrame_SetIP.cs">
<ProcessStarted />
<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.Configuration.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>System.Xml.dll (No symbols)</ModuleLoaded>
<LogMessage>1\r\n</LogMessage>
<DebuggingPaused>Break SetIP.cs:17,4-17,40</DebuggingPaused>
<DebuggingPaused>SetIP SetIP.cs:16,4-16,44</DebuggingPaused>
<DebuggingPaused>Break StackFrame_SetIP.cs:17,4-17,40</DebuggingPaused>
<DebuggingPaused>SetIP StackFrame_SetIP.cs:16,4-16,44</DebuggingPaused>
<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 />
</Test>
</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; @@ -9,13 +9,13 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class FunctionVariablesLifetime
public class StackFrame_VariablesLifetime
{
public int @class = 3;
public static void Main()
{
new FunctionVariablesLifetime().Function(1);
new StackFrame_VariablesLifetime().Function(1);
System.Diagnostics.Debugger.Break(); // 5
}
@ -41,14 +41,14 @@ namespace Debugger.Tests { @@ -41,14 +41,14 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void FunctionVariablesLifetime()
public void StackFrame_VariablesLifetime()
{
Value argument = null;
Value local = null;
Value localInSubFunction = null;
Value @class = null;
StartTest("FunctionVariablesLifetime.cs"); // 1 - Enter program
StartTest("StackFrame_VariablesLifetime.cs"); // 1 - Enter program
argument = process.SelectedStackFrame.GetArgumentValue(0);
local = process.SelectedStackFrame.GetLocalVariableValue("local");
@ -94,11 +94,11 @@ namespace Debugger.Tests { @@ -94,11 +94,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="FunctionVariablesLifetime.cs">
name="StackFrame_VariablesLifetime.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>FunctionVariablesLifetime.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break FunctionVariablesLifetime.cs:25,4-25,40</DebuggingPaused>
<ModuleLoaded>StackFrame_VariablesLifetime.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break StackFrame_VariablesLifetime.cs:25,4-25,40</DebuggingPaused>
<argument>
<Value
AsString="1"
@ -116,11 +116,11 @@ namespace Debugger.Tests { @@ -116,11 +116,11 @@ namespace Debugger.Tests {
<_x0040_class>
<Value
AsString="3"
Expression="((Debugger.Tests.TestPrograms.FunctionVariablesLifetime)(this)).@class"
Expression="((Debugger.Tests.TestPrograms.StackFrame_VariablesLifetime)(this)).@class"
PrimitiveValue="3"
Type="System.Int32" />
</_x0040_class>
<DebuggingPaused>Break FunctionVariablesLifetime.cs:34,4-34,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_VariablesLifetime.cs:34,4-34,40</DebuggingPaused>
<argument>
<Value
AsString="{Exception: Value is no longer valid}"
@ -144,7 +144,7 @@ namespace Debugger.Tests { @@ -144,7 +144,7 @@ namespace Debugger.Tests {
<_x0040_class>
<Value
AsString="{Exception: Value is no longer valid}"
Expression="((Debugger.Tests.TestPrograms.FunctionVariablesLifetime)(this)).@class"
Expression="((Debugger.Tests.TestPrograms.StackFrame_VariablesLifetime)(this)).@class"
IsInvalid="True"
IsNull="{Exception: Value is no longer valid}"
IsReference="{Exception: Value is no longer valid}"
@ -158,7 +158,7 @@ namespace Debugger.Tests { @@ -158,7 +158,7 @@ namespace Debugger.Tests {
PrimitiveValue="4"
Type="System.Int32" />
</localInSubFunction>
<DebuggingPaused>Break FunctionVariablesLifetime.cs:27,4-27,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_VariablesLifetime.cs:27,4-27,40</DebuggingPaused>
<argument>
<Value
AsString="{Exception: Value is no longer valid}"
@ -182,7 +182,7 @@ namespace Debugger.Tests { @@ -182,7 +182,7 @@ namespace Debugger.Tests {
<_x0040_class>
<Value
AsString="{Exception: Value is no longer valid}"
Expression="((Debugger.Tests.TestPrograms.FunctionVariablesLifetime)(this)).@class"
Expression="((Debugger.Tests.TestPrograms.StackFrame_VariablesLifetime)(this)).@class"
IsInvalid="True"
IsNull="{Exception: Value is no longer valid}"
IsReference="{Exception: Value is no longer valid}"
@ -199,7 +199,7 @@ namespace Debugger.Tests { @@ -199,7 +199,7 @@ namespace Debugger.Tests {
PrimitiveValue="{Exception: Value is no longer valid}"
Type="System.Int32" />
</localInSubFunction>
<DebuggingPaused>Break FunctionVariablesLifetime.cs:34,4-34,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_VariablesLifetime.cs:34,4-34,40</DebuggingPaused>
<argument>
<Value
AsString="{Exception: Value is no longer valid}"
@ -223,7 +223,7 @@ namespace Debugger.Tests { @@ -223,7 +223,7 @@ namespace Debugger.Tests {
<_x0040_class>
<Value
AsString="{Exception: Value is no longer valid}"
Expression="((Debugger.Tests.TestPrograms.FunctionVariablesLifetime)(this)).@class"
Expression="((Debugger.Tests.TestPrograms.StackFrame_VariablesLifetime)(this)).@class"
IsInvalid="True"
IsNull="{Exception: Value is no longer valid}"
IsReference="{Exception: Value is no longer valid}"
@ -247,7 +247,7 @@ namespace Debugger.Tests { @@ -247,7 +247,7 @@ namespace Debugger.Tests {
PrimitiveValue="4"
Type="System.Int32" />
</localInSubFunction_x0028_new_x0029_>
<DebuggingPaused>Break FunctionVariablesLifetime.cs:19,4-19,40</DebuggingPaused>
<DebuggingPaused>Break StackFrame_VariablesLifetime.cs:19,4-19,40</DebuggingPaused>
<argument>
<Value
AsString="{Exception: Value is no longer valid}"
@ -271,7 +271,7 @@ namespace Debugger.Tests { @@ -271,7 +271,7 @@ namespace Debugger.Tests {
<_x0040_class>
<Value
AsString="{Exception: Value is no longer valid}"
Expression="((Debugger.Tests.TestPrograms.FunctionVariablesLifetime)(this)).@class"
Expression="((Debugger.Tests.TestPrograms.StackFrame_VariablesLifetime)(this)).@class"
IsInvalid="True"
IsNull="{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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class ThreadName
public class Thread_Name
{
public static void Main()
{
@ -26,10 +26,10 @@ namespace Debugger.Tests { @@ -26,10 +26,10 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void ThreadName()
public void Thread_Name()
{
debugger.Processes.Added += debugger_ProcessStarted;
StartTest("ThreadName.cs");
StartTest("Thread_Name.cs");
debugger.Processes.Added -= debugger_ProcessStarted;
ObjectDump("Thread", process.SelectedThread);
process.Continue();
@ -51,7 +51,7 @@ namespace Debugger.Tests { @@ -51,7 +51,7 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="ThreadName.cs">
name="Thread_Name.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ThreadStartedEvent>
@ -65,34 +65,34 @@ namespace Debugger.Tests { @@ -65,34 +65,34 @@ namespace Debugger.Tests {
Priority="Normal"
RuntimeValue=" = null" />
</ThreadStartedEvent>
<ModuleLoaded>ThreadName.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ThreadName.cs:17,4-17,40</DebuggingPaused>
<ModuleLoaded>Thread_Name.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Thread_Name.cs:17,4-17,40</DebuggingPaused>
<Thread>
<Thread
CurrentExceptionType="0"
IsAtSafePoint="True"
IsInValidState="True"
MostRecentStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.ThreadName.Main"
MostRecentStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.Thread_Name.Main"
Name=""
OldestStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main"
OldestStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main"
Priority="AboveNormal"
RuntimeValue=" = {System.Threading.Thread}"
SelectedStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main" />
SelectedStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main" />
</Thread>
<DebuggingPaused>Break ThreadName.cs:19,4-19,40</DebuggingPaused>
<DebuggingPaused>Break Thread_Name.cs:19,4-19,40</DebuggingPaused>
<Thread>
<Thread
CurrentExceptionType="0"
IsAtSafePoint="True"
IsInValidState="True"
MostRecentStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.ThreadName.Main"
MostRecentStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main"
MostRecentStackFrameWithLoadedSymbols="Debugger.Tests.TestPrograms.Thread_Name.Main"
Name="ThreadName"
OldestStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main"
OldestStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main"
Priority="AboveNormal"
RuntimeValue=" = {System.Threading.Thread}"
SelectedStackFrame="Debugger.Tests.TestPrograms.ThreadName.Main" />
SelectedStackFrame="Debugger.Tests.TestPrograms.Thread_Name.Main" />
</Thread>
<ThreadStartedEvent>
<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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class ArrayValue
public class Value_Array
{
public static void Main()
{
@ -27,12 +27,12 @@ namespace Debugger.Tests { @@ -27,12 +27,12 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void ArrayValue()
public void Value_Array()
{
ExpandProperties(
"DebugType.BaseType"
);
StartTest("ArrayValue.cs");
StartTest("Value_Array.cs");
Value array = process.SelectedStackFrame.GetLocalVariableValue("array");
ObjectDump("array", array);
@ -50,11 +50,11 @@ namespace Debugger.Tests { @@ -50,11 +50,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="ArrayValue.cs">
name="Value_Array.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>ArrayValue.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ArrayValue.cs:20,4-20,40</DebuggingPaused>
<ModuleLoaded>Value_Array.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Value_Array.cs:20,4-20,40</DebuggingPaused>
<array>
<Value
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; @@ -10,7 +10,7 @@ using System.Collections.Generic;
namespace Debugger.Tests.TestPrograms
{
public class GenericDictionary
public class Value_GenericDictionary
{
public static void Main()
{
@ -30,9 +30,9 @@ namespace Debugger.Tests { @@ -30,9 +30,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[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 members", process.SelectedStackFrame.GetLocalVariableValue("dict").GetMemberValues());
@ -47,11 +47,11 @@ namespace Debugger.Tests { @@ -47,11 +47,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="GenericDictionary.cs">
name="Value_GenericDictionary.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>GenericDictionary.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break GenericDictionary.cs:21,4-21,40</DebuggingPaused>
<ModuleLoaded>Value_GenericDictionary.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Value_GenericDictionary.cs:21,4-21,40</DebuggingPaused>
<dict>
<Value
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 @@ -15,7 +15,7 @@ namespace Debugger.Tests.TestPrograms
string basePrivate = "b";
}
public class ObjectValue: BaseClass2
public class Value_Object: BaseClass2
{
string privateField = "c";
public string publicFiled = "d";
@ -28,7 +28,7 @@ namespace Debugger.Tests.TestPrograms @@ -28,7 +28,7 @@ namespace Debugger.Tests.TestPrograms
public static void Main()
{
ObjectValue val = new ObjectValue();
Value_Object val = new Value_Object();
System.Diagnostics.Debugger.Break();
val.privateField = "new private";
System.Diagnostics.Debugger.Break();
@ -43,11 +43,11 @@ namespace Debugger.Tests { @@ -43,11 +43,11 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void ObjectValue()
public void Value_Object()
{
Value val = null;
StartTest("ObjectValue.cs");
StartTest("Value_Object.cs");
val = process.SelectedStackFrame.GetLocalVariableValue("val");
ObjectDump("val", val);
@ -68,24 +68,24 @@ namespace Debugger.Tests { @@ -68,24 +68,24 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="ObjectValue.cs">
name="Value_Object.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>ObjectValue.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break ObjectValue.cs:32,4-32,40</DebuggingPaused>
<ModuleLoaded>Value_Object.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Value_Object.cs:32,4-32,40</DebuggingPaused>
<val>
<Value
AsString="{Debugger.Tests.TestPrograms.ObjectValue}"
AsString="{Debugger.Tests.TestPrograms.Value_Object}"
Expression="val"
IsReference="True"
PrimitiveValue="{Exception: Value is not a primitive type}"
Type="Debugger.Tests.TestPrograms.ObjectValue" />
Type="Debugger.Tests.TestPrograms.Value_Object" />
</val>
<val_members>
<Item>
<Value
AsString="c"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).privateField"
Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).privateField"
IsReference="True"
PrimitiveValue="c"
Type="System.String" />
@ -93,7 +93,7 @@ namespace Debugger.Tests { @@ -93,7 +93,7 @@ namespace Debugger.Tests {
<Item>
<Value
AsString="d"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).publicFiled"
Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).publicFiled"
IsReference="True"
PrimitiveValue="d"
Type="System.String" />
@ -117,26 +117,26 @@ namespace Debugger.Tests { @@ -117,26 +117,26 @@ namespace Debugger.Tests {
<Item>
<Value
AsString="c"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).PublicProperty"
Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).PublicProperty"
IsReference="True"
PrimitiveValue="c"
Type="System.String" />
</Item>
</val_members>
<DebuggingPaused>Break ObjectValue.cs:34,4-34,40</DebuggingPaused>
<DebuggingPaused>Break Value_Object.cs:34,4-34,40</DebuggingPaused>
<val>
<Value
AsString="{Debugger.Tests.TestPrograms.ObjectValue}"
AsString="{Debugger.Tests.TestPrograms.Value_Object}"
Expression="val"
IsReference="True"
PrimitiveValue="{Exception: Value is not a primitive type}"
Type="Debugger.Tests.TestPrograms.ObjectValue" />
Type="Debugger.Tests.TestPrograms.Value_Object" />
</val>
<val_members>
<Item>
<Value
AsString="new private"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).privateField"
Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).privateField"
IsReference="True"
PrimitiveValue="new private"
Type="System.String" />
@ -144,7 +144,7 @@ namespace Debugger.Tests { @@ -144,7 +144,7 @@ namespace Debugger.Tests {
<Item>
<Value
AsString="d"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).publicFiled"
Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).publicFiled"
IsReference="True"
PrimitiveValue="d"
Type="System.String" />
@ -168,7 +168,7 @@ namespace Debugger.Tests { @@ -168,7 +168,7 @@ namespace Debugger.Tests {
<Item>
<Value
AsString="new private"
Expression="((Debugger.Tests.TestPrograms.ObjectValue)(val)).PublicProperty"
Expression="((Debugger.Tests.TestPrograms.Value_Object)(val)).PublicProperty"
IsReference="True"
PrimitiveValue="new private"
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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class PrimitiveValue
public class Value_Primitive
{
public static void Main()
{
@ -27,13 +27,13 @@ namespace Debugger.Tests { @@ -27,13 +27,13 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void PrimitiveValue()
public void Value_Primitive()
{
ExpandProperties(
"Value.Type",
"DebugType.BaseType"
);
StartTest("PrimitiveValue.cs");
StartTest("Value_Primitive.cs");
ObjectDump("locals", process.SelectedStackFrame.GetLocalVariableValues());
// Test System.Object access
@ -51,11 +51,11 @@ namespace Debugger.Tests { @@ -51,11 +51,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="PrimitiveValue.cs">
name="Value_Primitive.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>PrimitiveValue.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break PrimitiveValue.cs:20,4-20,40</DebuggingPaused>
<ModuleLoaded>Value_Primitive.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Value_Primitive.cs:20,4-20,40</DebuggingPaused>
<locals
Capacity="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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class PropertyVariable
public class Value_Property
{
string PrivateProperty {
get {
@ -37,7 +37,7 @@ namespace Debugger.Tests.TestPrograms @@ -37,7 +37,7 @@ namespace Debugger.Tests.TestPrograms
public static void Main()
{
PropertyVariable var = new PropertyVariable();
Value_Property var = new Value_Property();
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; @@ -10,7 +10,7 @@ using System.Windows.Forms;
namespace Debugger.Tests.TestPrograms
{
public class PropertyVariableForm
public class Value_PropertyVariableForm
{
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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class Break
public class _Break
{
public static void Main()
{
@ -23,9 +23,9 @@ namespace Debugger.Tests { @@ -23,9 +23,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void Break()
public void _Break()
{
StartTest("Break.cs");
StartTest("_Break.cs");
EndTest();
}
@ -37,11 +37,11 @@ namespace Debugger.Tests { @@ -37,11 +37,11 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="Break.cs">
name="_Break.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>Break.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break Break.cs:16,4-16,40</DebuggingPaused>
<ModuleLoaded>_Break.exe (Has symbols)</ModuleLoaded>
<DebuggingPaused>Break _Break.cs:16,4-16,40</DebuggingPaused>
<ProcessExited />
</Test>
</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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class HelloWorld
public class _HelloWorld
{
public static void Main()
{
@ -23,9 +23,9 @@ namespace Debugger.Tests { @@ -23,9 +23,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void HelloWorld()
public void _HelloWorld()
{
StartTest("HelloWorld.cs", false);
StartTest("_HelloWorld.cs", false);
process.WaitForExit();
@ -39,10 +39,10 @@ namespace Debugger.Tests { @@ -39,10 +39,10 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="HelloWorld.cs">
name="_HelloWorld.cs">
<ProcessStarted />
<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.Configuration.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; @@ -9,7 +9,7 @@ using System;
namespace Debugger.Tests.TestPrograms
{
public class SimpleProgram
public class _SimpleProgram
{
public static void Main()
{
@ -23,9 +23,9 @@ namespace Debugger.Tests { @@ -23,9 +23,9 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void SimpleProgram()
public void _SimpleProgram()
{
StartTest("SimpleProgram.cs", false);
StartTest("_SimpleProgram.cs", false);
process.WaitForExit();
@ -39,10 +39,10 @@ namespace Debugger.Tests { @@ -39,10 +39,10 @@ namespace Debugger.Tests {
<?xml version="1.0" encoding="utf-8"?>
<DebuggerTests>
<Test
name="SimpleProgram.cs">
name="_SimpleProgram.cs">
<ProcessStarted />
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded>
<ModuleLoaded>SimpleProgram.exe (Has symbols)</ModuleLoaded>
<ModuleLoaded>_SimpleProgram.exe (Has symbols)</ModuleLoaded>
<ProcessExited />
</Test>
</DebuggerTests>
Loading…
Cancel
Save