//
//
//
//
// $Revision$
//
using System;
namespace Debugger.Tests.TestPrograms
{
public class PrimitiveValue
{
public static void Main()
{
bool b = true;
int i = 5;
string s = "five";
double d = 5.5;
System.Diagnostics.Debugger.Break();
}
}
}
#if TEST_CODE
namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void PrimitiveValue()
{
ExpandProperties(
"Value.Type",
"DebugType.BaseType"
);
StartTest("PrimitiveValue.cs");
ObjectDump("locals", process.SelectedStackFrame.GetLocalVariableValues());
// Test System.Object access
ObjectDump("b as string", process.SelectedStackFrame.GetLocalVariableValue("b").InvokeToString());
ObjectDump("i as string", process.SelectedStackFrame.GetLocalVariableValue("i").InvokeToString());
ObjectDump("s as string", process.SelectedStackFrame.GetLocalVariableValue("s").InvokeToString());
EndTest();
}
}
}
#endif
#if EXPECTED_OUTPUT
mscorlib.dll (No symbols)
PrimitiveValue.exe (Has symbols)
Break PrimitiveValue.cs:20,4-20,40
-
null
-
null
-
null
-
null
True
5
five
#endif // EXPECTED_OUTPUT