//
//
//
//
// $Revision$
//
using System;
namespace Debugger.Tests.TestPrograms
{
public class ArrayValue
{
public static void Main()
{
int[] array = new int[5];
for(int i = 0; i < 5; i++) {
array[i] = i;
}
System.Diagnostics.Debugger.Break();
}
}
}
#if TEST_CODE
namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void ArrayValue()
{
StartTest("ArrayValue.cs");
WaitForPause();
Value array = process.SelectedStackFrame.GetLocalVariableValue("array");
ObjectDump("array", array);
ObjectDump("array elements", array.GetArrayElements());
process.Continue();
process.WaitForExit();
CheckXmlOutput();
}
}
}
#endif
#if EXPECTED_OUTPUT
mscorlib.dll
ArrayValue.exe
Break
True
5
1
[5]
array
False
{System.Int32[]}
False
System.Int32[]
False
False
False
-
False
array[0]
False
0
False
System.Int32
False
True
True
0
-
False
array[1]
False
1
False
System.Int32
False
True
True
1
-
False
array[2]
False
2
False
System.Int32
False
True
True
2
-
False
array[3]
False
3
False
System.Int32
False
True
True
3
-
False
array[4]
False
4
False
System.Int32
False
True
True
4
#endif // EXPECTED_OUTPUT