From 710b027272e17a6e1a665af271e8777b0cd8cdcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Sat, 24 Oct 2009 12:56:54 +0000 Subject: [PATCH] Updated unit tests to the new metadata API git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5110 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Src/Metadata/DebugType.cs | 10 +- .../Project/Src/DebuggerTestsBase.cs | 6 +- .../Project/Src/TestPrograms/DebugType.cs | 1120 ++++++++++------- .../DebugType_CompilerGeneratedClasses.cs | 92 +- .../Src/TestPrograms/ExpressionEvaluator.cs | 4 +- 5 files changed, 759 insertions(+), 473 deletions(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Metadata/DebugType.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Metadata/DebugType.cs index 117fe60ff6..d95f1eeaa3 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Metadata/DebugType.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Metadata/DebugType.cs @@ -354,7 +354,7 @@ namespace Debugger.MetaData public override Type GetInterface(string name, bool ignoreCase) { foreach(DebugType inter in this.GetInterfaces()) { - if (string.Equals(inter.FullName, fullName, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) { + if (string.Equals(inter.FullName, name, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) { return inter; } } @@ -569,11 +569,7 @@ namespace Debugger.MetaData public bool IsCompilerGenerated { get { - if (this.IsClass || this.IsValueType) { - return IsDefined(typeof(System.Runtime.CompilerServices.CompilerGeneratedAttribute), false); - } else { - return false; - } + return IsDefined(typeof(System.Runtime.CompilerServices.CompilerGeneratedAttribute), false); } } @@ -950,8 +946,6 @@ namespace Debugger.MetaData case "System.UInt64": return typeof(System.UInt64); case "System.Single": return typeof(System.Single); case "System.Double": return typeof(System.Double); - case "System.IntPtr": return typeof(System.IntPtr); - case "System.UIntPtr": return typeof(System.UIntPtr); case "System.String": return typeof(System.String); default: return null; } diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/DebuggerTestsBase.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/DebuggerTestsBase.cs index 14d78a58a4..cb8950dc44 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/DebuggerTestsBase.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/DebuggerTestsBase.cs @@ -65,15 +65,16 @@ namespace Debugger.Tests "*.GetHashCode", "*.GetEnumerator", "MemberInfo.MemberType", + "MemberInfo.IsPublic", "Type.DeclaringType", "Type.IsAbstract", "Type.IsAnsiClass", "Type.IsAutoLayout", "Type.IsLayoutSequential", - "Type.IsPublic", "Type.IsNestedPublic", "Type.IsSealed", "Type.IsSerializable", + "Type.IsNotPublic", "Type.Name", "Type.Namespace", "Type.UnderlyingSystemType", @@ -81,11 +82,10 @@ namespace Debugger.Tests "MethodBase.GetMethodBody", "MethodBase.GetMethodImplementationFlags", "MethodBase.GetParameters", + "MethodBase.IsFinal", "MethodBase.IsHideBySig", - "MethodBase.IsPublic", "MethodBase.IsVirtual", "MethodBase.IsSpecialName", - "MethodBase.Name", "MethodBase.ReturnParameter", "MethodBase.ParameterCount", "PropertyInfo.CanRead", diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType.cs index c6f01733d5..2c7c7213de 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType.cs @@ -46,6 +46,11 @@ namespace Debugger.Tests.TestPrograms } } + public enum MyEnum: byte + { + A, B + } + public interface MyInterface { R Fun(A a, B b, M m); @@ -57,7 +62,7 @@ namespace Debugger.Tests.TestPrograms public List Prop { get { return new List(); } } - R MyInterface.Fun(MyClass a, MyStruct b, M m) + public R Fun(MyClass a, MyStruct b, M m) { throw new NotImplementedException(); } @@ -81,7 +86,7 @@ namespace Debugger.Tests.TestPrograms char c = 'a'; object obj = new object(); MyClass myClass = new MyClass(); - MyStruct point = new MyStruct(); + MyStruct myStruct = new MyStruct(); object box = 40; // Pointers @@ -89,7 +94,7 @@ namespace Debugger.Tests.TestPrograms int** iPtrPtr = &iPtr; bool* bPtr = &b; void* voidPtr = &i; - MyStruct* pointPtr = &point; + MyStruct* myStructPtr = &myStruct; IntPtr ptr = IntPtr.Zero; // Arrays @@ -119,10 +124,13 @@ namespace Debugger.Tests.TestPrograms // TypeRef generics List list = new List(); - List.Enumerator listEnum = list.GetEnumerator(); + List.Enumerator listEnumerator = list.GetEnumerator(); // Other AddDelegate fnPtr = Add; + ValueType valueType = null; + Enum enumType = null; + MyEnum myEnum = MyEnum.B; Access access = new Access(); @@ -162,15 +170,20 @@ namespace Debugger.Tests { class LocalVariable { public string Name { get; set; } - public DebugType Type { get; set; } + public Type Type { get; set; } public Value Value { get; set; } } void PrintLocalVariables() + { + PrintLocalVariables("LocalVariables"); + } + + void PrintLocalVariables(string msg) { ObjectDump( - "LocalVariables", - process.SelectedStackFrame.MethodInfo.LocalVariables.Select(v => new LocalVariable() { Name = v.Name, Type = v.Type, Value = v.GetValue(process.SelectedStackFrame) }) + msg, + process.SelectedStackFrame.MethodInfo.GetLocalVariables().Select(v => new LocalVariable() { Name = v.Name, Type = v.LocalType, Value = v.GetValue(process.SelectedStackFrame) }) ); } @@ -179,7 +192,7 @@ namespace Debugger.Tests { { ExpandProperties( "LocalVariable.Type", - "DebugType.ElementType" + "DebugType.GetElementType" ); StartTest("DebugType.cs"); @@ -209,10 +222,10 @@ namespace Debugger.Tests { mscorlib.dll (No symbols) DebugType.exe (Has symbols) - Break DebugType.cs:129,4-129,40 + Break DebugType.cs:137,4-137,40 + Count="13"> Debugger.Tests.TestPrograms.DebugType AddDelegate MyClass @@ -222,171 +235,263 @@ namespace Debugger.Tests { MyStruct MyGenStruct`1 MyGenNestedStruct`1 + MyEnum MyInterface`3 MyInterfaceImpl`1 Access + Count="6"> - null + GetMembers="{Add, Main, .ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Add, Main, .ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + IsClass="True"> + null - null + FullName="Debugger.Tests.TestPrograms.DebugType.AddDelegate" + GetMembers="{.ctor, Invoke, BeginInvoke, EndInvoke, GetObjectData, Equals, GetInvocationList, GetHashCode, DynamicInvoke, Equals, GetHashCode, GetInvocationList, get_Method, get_Target, Clone, GetObjectData, System.Reflection.MethodInfo Method, System.Object Target, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, Invoke, BeginInvoke, EndInvoke, GetObjectData, Equals, GetInvocationList, GetHashCode, DynamicInvoke, Equals, GetHashCode, GetInvocationList, get_Method, get_Target, Clone, GetObjectData, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Reflection.MethodInfo Method, System.Object Target}" + IsClass="True"> + null - null + FullName="Debugger.Tests.TestPrograms.DebugType.MyClass" + GetMembers="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + IsClass="True"> + null - null + FullName="Debugger.Tests.TestPrograms.DebugType.MyStruct" + GetMembers="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsValueType="True"> + null + null + + + + - null + FullName="Debugger.Tests.TestPrograms.DebugType.Access" + GetFields="{System.Int32 publicField}" + GetMembers="{System.Int32 publicField, get_publicProperty, publicMethod, .ctor, System.Int32 publicProperty, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{get_publicProperty, publicMethod, .ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Int32 publicProperty}" + IsClass="True"> + null - - - - - - + + + + + - - - + PropertyType="System.Int32" /> + + + + + + + + + + + + + + + - + - + - + ReturnType="System.Collections.Generic.List`1[[System.Int32]]" /> + + + - - - + PropertyType="System.Collections.Generic.List`1[[System.Int32]]" /> + + + + + + + + + + + + + + + @@ -397,11 +502,12 @@ namespace Debugger.Tests { Value="null"> - null + GetMembers="{.ctor, ToString, Equals, Equals, ReferenceEquals, GetHashCode, GetType}" + GetMethods="{.ctor, ToString, Equals, Equals, ReferenceEquals, GetHashCode, GetType}" + IsClass="True"> + null @@ -413,13 +519,17 @@ namespace Debugger.Tests { Value="null"> - null + GetFields="{System.String Empty}" + GetInterfaces="{System.IComparable, System.ICloneable, System.IConvertible, System.IComparable`1[[System.String]], System.Collections.Generic.IEnumerable`1[[System.Char]], System.Collections.IEnumerable, System.IEquatable`1[[System.String]]}" + GetMembers="{System.String Empty, Join, Join, Equals, Equals, Equals, Equals, Equals, op_Equality, op_Inequality, get_Chars, CopyTo, ToCharArray, ToCharArray, IsNullOrEmpty, GetHashCode, get_Length, Split, Split, Split, Split, Split, Split, Substring, Substring, Trim, Trim, TrimStart, TrimEnd, .ctor, .ctor, .ctor, .ctor, .ctor, .ctor, .ctor, .ctor, IsNormalized, IsNormalized, Normalize, Normalize, Compare, Compare, Compare, Compare, Compare, Compare, Compare, Compare, Compare, Compare, CompareTo, CompareTo, CompareOrdinal, CompareOrdinal, Contains, EndsWith, EndsWith, EndsWith, IndexOf, IndexOf, IndexOf, IndexOf, IndexOf, IndexOf, IndexOf, IndexOf, IndexOf, IndexOfAny, IndexOfAny, IndexOfAny, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOfAny, LastIndexOfAny, LastIndexOfAny, PadLeft, PadLeft, PadRight, PadRight, StartsWith, StartsWith, StartsWith, ToLower, ToLower, ToLowerInvariant, ToUpper, ToUpper, ToUpperInvariant, ToString, ToString, Clone, Insert, Replace, Replace, Remove, Remove, Format, Format, Format, Format, Format, Copy, Concat, Concat, Concat, Concat, Concat, Concat, Concat, Concat, Concat, Intern, IsInterned, GetTypeCode, GetEnumerator, System.Char Chars, System.Int32 Length, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Join, Join, Equals, Equals, Equals, Equals, Equals, op_Equality, op_Inequality, get_Chars, CopyTo, ToCharArray, ToCharArray, IsNullOrEmpty, GetHashCode, get_Length, Split, Split, Split, Split, Split, Split, Substring, Substring, Trim, Trim, TrimStart, TrimEnd, .ctor, .ctor, .ctor, .ctor, .ctor, .ctor, .ctor, .ctor, IsNormalized, IsNormalized, Normalize, Normalize, Compare, Compare, Compare, Compare, Compare, Compare, Compare, Compare, Compare, Compare, CompareTo, CompareTo, CompareOrdinal, CompareOrdinal, Contains, EndsWith, EndsWith, EndsWith, IndexOf, IndexOf, IndexOf, IndexOf, IndexOf, IndexOf, IndexOf, IndexOf, IndexOf, IndexOfAny, IndexOfAny, IndexOfAny, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOf, LastIndexOfAny, LastIndexOfAny, LastIndexOfAny, PadLeft, PadLeft, PadRight, PadRight, StartsWith, StartsWith, StartsWith, ToLower, ToLower, ToLowerInvariant, ToUpper, ToUpper, ToUpperInvariant, ToString, ToString, Clone, Insert, Replace, Replace, Remove, Remove, Format, Format, Format, Format, Format, Copy, Concat, Concat, Concat, Concat, Concat, Concat, Concat, Concat, Concat, Intern, IsInterned, GetTypeCode, GetEnumerator, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Char Chars, System.Int32 Length}" + IsPrimitive="True" + IsValueType="True"> + null @@ -427,16 +537,17 @@ namespace Debugger.Tests { - null + FullName="Debugger.Tests.TestPrograms.DebugType.MyClass" + GetMembers="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + IsClass="True"> + null @@ -448,13 +559,16 @@ namespace Debugger.Tests { Value="42"> - null + GetInterfaces="{System.IComparable, System.IFormattable, System.IConvertible, System.IComparable`1[[System.Int32]], System.IEquatable`1[[System.Int32]]}" + GetMembers="{CompareTo, CompareTo, Equals, Equals, GetHashCode, ToString, ToString, ToString, ToString, Parse, Parse, Parse, Parse, TryParse, TryParse, GetTypeCode, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{CompareTo, CompareTo, Equals, Equals, GetHashCode, ToString, ToString, ToString, ToString, Parse, Parse, Parse, Parse, TryParse, TryParse, GetTypeCode, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsInteger="True" + IsPrimitive="True" + IsValueType="True"> + null @@ -466,13 +580,16 @@ namespace Debugger.Tests { Value="True"> - null + GetFields="{System.String TrueString, System.String FalseString}" + GetInterfaces="{System.IComparable, System.IConvertible, System.IComparable`1[[System.Boolean]], System.IEquatable`1[[System.Boolean]]}" + GetMembers="{System.String TrueString, System.String FalseString, GetHashCode, ToString, ToString, Equals, Equals, CompareTo, CompareTo, Parse, TryParse, GetTypeCode, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{GetHashCode, ToString, ToString, Equals, Equals, CompareTo, CompareTo, Parse, TryParse, GetTypeCode, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsPrimitive="True" + IsValueType="True"> + null @@ -484,13 +601,15 @@ namespace Debugger.Tests { Value="a"> - null + GetInterfaces="{System.IComparable, System.IConvertible, System.IComparable`1[[System.Char]], System.IEquatable`1[[System.Char]]}" + GetMembers="{GetHashCode, Equals, Equals, CompareTo, CompareTo, ToString, ToString, ToString, Parse, TryParse, IsDigit, IsDigit, IsLetter, IsLetter, IsWhiteSpace, IsWhiteSpace, IsUpper, IsUpper, IsLower, IsLower, IsPunctuation, IsPunctuation, IsLetterOrDigit, IsLetterOrDigit, ToUpper, ToUpper, ToUpperInvariant, ToLower, ToLower, ToLowerInvariant, GetTypeCode, IsControl, IsControl, IsNumber, IsNumber, IsSeparator, IsSeparator, IsSurrogate, IsSurrogate, IsSymbol, IsSymbol, GetUnicodeCategory, GetUnicodeCategory, GetNumericValue, GetNumericValue, IsHighSurrogate, IsHighSurrogate, IsLowSurrogate, IsLowSurrogate, IsSurrogatePair, IsSurrogatePair, ConvertFromUtf32, ConvertToUtf32, ConvertToUtf32, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{GetHashCode, Equals, Equals, CompareTo, CompareTo, ToString, ToString, ToString, Parse, TryParse, IsDigit, IsDigit, IsLetter, IsLetter, IsWhiteSpace, IsWhiteSpace, IsUpper, IsUpper, IsLower, IsLower, IsPunctuation, IsPunctuation, IsLetterOrDigit, IsLetterOrDigit, ToUpper, ToUpper, ToUpperInvariant, ToLower, ToLower, ToLowerInvariant, GetTypeCode, IsControl, IsControl, IsNumber, IsNumber, IsSeparator, IsSeparator, IsSurrogate, IsSurrogate, IsSymbol, IsSymbol, GetUnicodeCategory, GetUnicodeCategory, GetNumericValue, GetNumericValue, IsHighSurrogate, IsHighSurrogate, IsLowSurrogate, IsLowSurrogate, IsSurrogatePair, IsSurrogatePair, ConvertFromUtf32, ConvertToUtf32, ConvertToUtf32, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsPrimitive="True" + IsValueType="True"> + null @@ -502,11 +621,12 @@ namespace Debugger.Tests { Value="{System.Object}"> - null + GetMembers="{.ctor, ToString, Equals, Equals, ReferenceEquals, GetHashCode, GetType}" + GetMethods="{.ctor, ToString, Equals, Equals, ReferenceEquals, GetHashCode, GetType}" + IsClass="True"> + null @@ -514,33 +634,35 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType.MyClass" + Value="{Debugger.Tests.TestPrograms.DebugType.MyClass}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType.MyClass" + GetMembers="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + IsClass="True"> + null + Name="myStruct" + Type="Debugger.Tests.TestPrograms.DebugType.MyStruct" + Value="{Debugger.Tests.TestPrograms.DebugType.MyStruct}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType.MyStruct" + GetMembers="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsValueType="True"> + null @@ -549,14 +671,15 @@ namespace Debugger.Tests { + Value="40"> - null + GetMembers="{.ctor, ToString, Equals, Equals, ReferenceEquals, GetHashCode, GetType}" + GetMethods="{.ctor, ToString, Equals, Equals, ReferenceEquals, GetHashCode, GetType}" + IsClass="True"> + null @@ -568,22 +691,27 @@ namespace Debugger.Tests { Value="{System.Int32*}"> - + GetElementType="System.Int32" + HasElementType="True" + IsClass="True" + IsCompilerGenerated="True" + IsPointer="True"> + - null + GetInterfaces="{System.IComparable, System.IFormattable, System.IConvertible, System.IComparable`1[[System.Int32]], System.IEquatable`1[[System.Int32]]}" + GetMembers="{CompareTo, CompareTo, Equals, Equals, GetHashCode, ToString, ToString, ToString, ToString, Parse, Parse, Parse, Parse, TryParse, TryParse, GetTypeCode, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{CompareTo, CompareTo, Equals, Equals, GetHashCode, ToString, ToString, ToString, ToString, Parse, Parse, Parse, Parse, TryParse, TryParse, GetTypeCode, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsInteger="True" + IsPrimitive="True" + IsValueType="True"> + null - + @@ -595,31 +723,38 @@ namespace Debugger.Tests { Value="{System.Int32**}"> - + GetElementType="System.Int32*" + HasElementType="True" + IsClass="True" + IsCompilerGenerated="True" + IsPointer="True"> + - + GetElementType="System.Int32" + HasElementType="True" + IsClass="True" + IsCompilerGenerated="True" + IsPointer="True"> + - null + GetInterfaces="{System.IComparable, System.IFormattable, System.IConvertible, System.IComparable`1[[System.Int32]], System.IEquatable`1[[System.Int32]]}" + GetMembers="{CompareTo, CompareTo, Equals, Equals, GetHashCode, ToString, ToString, ToString, ToString, Parse, Parse, Parse, Parse, TryParse, TryParse, GetTypeCode, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{CompareTo, CompareTo, Equals, Equals, GetHashCode, ToString, ToString, ToString, ToString, Parse, Parse, Parse, Parse, TryParse, TryParse, GetTypeCode, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsInteger="True" + IsPrimitive="True" + IsValueType="True"> + null - + - + @@ -631,22 +766,27 @@ namespace Debugger.Tests { Value="{System.Boolean*}"> - + GetElementType="System.Boolean" + HasElementType="True" + IsClass="True" + IsCompilerGenerated="True" + IsPointer="True"> + - null + GetFields="{System.String TrueString, System.String FalseString}" + GetInterfaces="{System.IComparable, System.IConvertible, System.IComparable`1[[System.Boolean]], System.IEquatable`1[[System.Boolean]]}" + GetMembers="{System.String TrueString, System.String FalseString, GetHashCode, ToString, ToString, Equals, Equals, CompareTo, CompareTo, Parse, TryParse, GetTypeCode, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{GetHashCode, ToString, ToString, Equals, Equals, CompareTo, CompareTo, Parse, TryParse, GetTypeCode, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsPrimitive="True" + IsValueType="True"> + null - + @@ -658,47 +798,53 @@ namespace Debugger.Tests { Value="{System.Void*}"> - + GetElementType="System.Void" + HasElementType="True" + IsClass="True" + IsCompilerGenerated="True" + IsPointer="True"> + - null + GetMembers="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsValueType="True"> + null - + + Name="myStructPtr" + Type="Debugger.Tests.TestPrograms.DebugType.MyStruct*" + Value="{Debugger.Tests.TestPrograms.DebugType.MyStruct*}"> - + Attributes="NotPublic" + FullName="Debugger.Tests.TestPrograms.DebugType.MyStruct*" + GetElementType="Debugger.Tests.TestPrograms.DebugType.MyStruct" + HasElementType="True" + IsClass="True" + IsCompilerGenerated="True" + IsPointer="True"> + - null + FullName="Debugger.Tests.TestPrograms.DebugType.MyStruct" + GetMembers="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsValueType="True"> + null - + @@ -707,16 +853,19 @@ namespace Debugger.Tests { + Value="{System.IntPtr}"> - null + GetFields="{System.IntPtr Zero}" + GetInterfaces="{System.Runtime.Serialization.ISerializable}" + GetMembers="{System.IntPtr Zero, .ctor, .ctor, .ctor, Equals, GetHashCode, ToInt32, ToInt64, ToString, ToString, op_Explicit, op_Explicit, op_Explicit, op_Explicit, op_Explicit, op_Explicit, op_Equality, op_Inequality, get_Size, ToPointer, System.Int32 Size, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, .ctor, .ctor, Equals, GetHashCode, ToInt32, ToInt64, ToString, ToString, op_Explicit, op_Explicit, op_Explicit, op_Explicit, op_Explicit, op_Explicit, op_Equality, op_Inequality, get_Size, ToPointer, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Int32 Size}" + IsValueType="True"> + null @@ -728,23 +877,31 @@ namespace Debugger.Tests { Value="{System.Char[]}"> - + GetArrayRank="1" + GetElementType="System.Char" + GetMembers="{GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, get_Length, get_LongLength, GetLength, GetLongLength, get_Rank, GetUpperBound, GetLowerBound, get_SyncRoot, get_IsReadOnly, get_IsFixedSize, get_IsSynchronized, Clone, CompareTo, Equals, GetHashCode, CopyTo, CopyTo, GetEnumerator, Initialize, System.Int32 Length, System.Int64 LongLength, System.Int32 Rank, System.Object SyncRoot, System.Boolean IsReadOnly, System.Boolean IsFixedSize, System.Boolean IsSynchronized, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, get_Length, get_LongLength, GetLength, GetLongLength, get_Rank, GetUpperBound, GetLowerBound, get_SyncRoot, get_IsReadOnly, get_IsFixedSize, get_IsSynchronized, Clone, CompareTo, Equals, GetHashCode, CopyTo, CopyTo, GetEnumerator, Initialize, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Int32 Length, System.Int64 LongLength, System.Int32 Rank, System.Object SyncRoot, System.Boolean IsReadOnly, System.Boolean IsFixedSize, System.Boolean IsSynchronized}" + HasElementType="True" + IsArray="True" + IsClass="True" + IsCompilerGenerated="True"> + - null + GetInterfaces="{System.IComparable, System.IConvertible, System.IComparable`1[[System.Char]], System.IEquatable`1[[System.Char]]}" + GetMembers="{GetHashCode, Equals, Equals, CompareTo, CompareTo, ToString, ToString, ToString, Parse, TryParse, IsDigit, IsDigit, IsLetter, IsLetter, IsWhiteSpace, IsWhiteSpace, IsUpper, IsUpper, IsLower, IsLower, IsPunctuation, IsPunctuation, IsLetterOrDigit, IsLetterOrDigit, ToUpper, ToUpper, ToUpperInvariant, ToLower, ToLower, ToLowerInvariant, GetTypeCode, IsControl, IsControl, IsNumber, IsNumber, IsSeparator, IsSeparator, IsSurrogate, IsSurrogate, IsSymbol, IsSymbol, GetUnicodeCategory, GetUnicodeCategory, GetNumericValue, GetNumericValue, IsHighSurrogate, IsHighSurrogate, IsLowSurrogate, IsLowSurrogate, IsSurrogatePair, IsSurrogatePair, ConvertFromUtf32, ConvertToUtf32, ConvertToUtf32, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{GetHashCode, Equals, Equals, CompareTo, CompareTo, ToString, ToString, ToString, Parse, TryParse, IsDigit, IsDigit, IsLetter, IsLetter, IsWhiteSpace, IsWhiteSpace, IsUpper, IsUpper, IsLower, IsLower, IsPunctuation, IsPunctuation, IsLetterOrDigit, IsLetterOrDigit, ToUpper, ToUpper, ToUpperInvariant, ToLower, ToLower, ToLowerInvariant, GetTypeCode, IsControl, IsControl, IsNumber, IsNumber, IsSeparator, IsSeparator, IsSurrogate, IsSurrogate, IsSymbol, IsSymbol, GetUnicodeCategory, GetUnicodeCategory, GetNumericValue, GetNumericValue, IsHighSurrogate, IsHighSurrogate, IsLowSurrogate, IsLowSurrogate, IsSurrogatePair, IsSurrogatePair, ConvertFromUtf32, ConvertToUtf32, ConvertToUtf32, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsPrimitive="True" + IsValueType="True"> + null - + @@ -756,23 +913,31 @@ namespace Debugger.Tests { Value="{System.Char[,]}"> - + GetArrayRank="2" + GetElementType="System.Char" + GetMembers="{GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, get_Length, get_LongLength, GetLength, GetLongLength, get_Rank, GetUpperBound, GetLowerBound, get_SyncRoot, get_IsReadOnly, get_IsFixedSize, get_IsSynchronized, Clone, CompareTo, Equals, GetHashCode, CopyTo, CopyTo, GetEnumerator, Initialize, System.Int32 Length, System.Int64 LongLength, System.Int32 Rank, System.Object SyncRoot, System.Boolean IsReadOnly, System.Boolean IsFixedSize, System.Boolean IsSynchronized, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, get_Length, get_LongLength, GetLength, GetLongLength, get_Rank, GetUpperBound, GetLowerBound, get_SyncRoot, get_IsReadOnly, get_IsFixedSize, get_IsSynchronized, Clone, CompareTo, Equals, GetHashCode, CopyTo, CopyTo, GetEnumerator, Initialize, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Int32 Length, System.Int64 LongLength, System.Int32 Rank, System.Object SyncRoot, System.Boolean IsReadOnly, System.Boolean IsFixedSize, System.Boolean IsSynchronized}" + HasElementType="True" + IsArray="True" + IsClass="True" + IsCompilerGenerated="True"> + - null + GetInterfaces="{System.IComparable, System.IConvertible, System.IComparable`1[[System.Char]], System.IEquatable`1[[System.Char]]}" + GetMembers="{GetHashCode, Equals, Equals, CompareTo, CompareTo, ToString, ToString, ToString, Parse, TryParse, IsDigit, IsDigit, IsLetter, IsLetter, IsWhiteSpace, IsWhiteSpace, IsUpper, IsUpper, IsLower, IsLower, IsPunctuation, IsPunctuation, IsLetterOrDigit, IsLetterOrDigit, ToUpper, ToUpper, ToUpperInvariant, ToLower, ToLower, ToLowerInvariant, GetTypeCode, IsControl, IsControl, IsNumber, IsNumber, IsSeparator, IsSeparator, IsSurrogate, IsSurrogate, IsSymbol, IsSymbol, GetUnicodeCategory, GetUnicodeCategory, GetNumericValue, GetNumericValue, IsHighSurrogate, IsHighSurrogate, IsLowSurrogate, IsLowSurrogate, IsSurrogatePair, IsSurrogatePair, ConvertFromUtf32, ConvertToUtf32, ConvertToUtf32, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{GetHashCode, Equals, Equals, CompareTo, CompareTo, ToString, ToString, ToString, Parse, TryParse, IsDigit, IsDigit, IsLetter, IsLetter, IsWhiteSpace, IsWhiteSpace, IsUpper, IsUpper, IsLower, IsLower, IsPunctuation, IsPunctuation, IsLetterOrDigit, IsLetterOrDigit, ToUpper, ToUpper, ToUpperInvariant, ToLower, ToLower, ToLowerInvariant, GetTypeCode, IsControl, IsControl, IsNumber, IsNumber, IsSeparator, IsSeparator, IsSurrogate, IsSurrogate, IsSymbol, IsSymbol, GetUnicodeCategory, GetUnicodeCategory, GetNumericValue, GetNumericValue, IsHighSurrogate, IsHighSurrogate, IsLowSurrogate, IsLowSurrogate, IsSurrogatePair, IsSurrogatePair, ConvertFromUtf32, ConvertToUtf32, ConvertToUtf32, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsPrimitive="True" + IsValueType="True"> + null - + @@ -780,17 +945,20 @@ namespace Debugger.Tests { + Type="System.Nullable`1[[System.Int32]]" + Value="{System.Nullable`1[[System.Int32]]}"> - null + FullName="System.Nullable`1[[System.Int32]]" + GetGenericArguments="{System.Int32}" + GetMembers="{.ctor, get_HasValue, get_Value, GetValueOrDefault, GetValueOrDefault, Equals, GetHashCode, ToString, op_Implicit, op_Explicit, System.Boolean HasValue, System.Int32 Value, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, get_HasValue, get_Value, GetValueOrDefault, GetValueOrDefault, Equals, GetHashCode, ToString, op_Implicit, op_Explicit, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Boolean HasValue, System.Int32 Value}" + IsGenericType="True" + IsValueType="True"> + null @@ -798,17 +966,20 @@ namespace Debugger.Tests { + Type="System.Nullable`1[[System.Int32]]" + Value="{System.Nullable`1[[System.Int32]]}"> - null + FullName="System.Nullable`1[[System.Int32]]" + GetGenericArguments="{System.Int32}" + GetMembers="{.ctor, get_HasValue, get_Value, GetValueOrDefault, GetValueOrDefault, Equals, GetHashCode, ToString, op_Implicit, op_Explicit, System.Boolean HasValue, System.Int32 Value, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, get_HasValue, get_Value, GetValueOrDefault, GetValueOrDefault, Equals, GetHashCode, ToString, op_Implicit, op_Explicit, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Boolean HasValue, System.Int32 Value}" + IsGenericType="True" + IsValueType="True"> + null @@ -816,17 +987,19 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]" + Value="{Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]" + GetGenericArguments="{System.Int32}" + GetMembers="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + IsClass="True" + IsGenericType="True"> + null @@ -834,27 +1007,35 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]][]" + Value="{Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]][]}"> - + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]][]" + GetArrayRank="1" + GetElementType="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]" + GetMembers="{GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, get_Length, get_LongLength, GetLength, GetLongLength, get_Rank, GetUpperBound, GetLowerBound, get_SyncRoot, get_IsReadOnly, get_IsFixedSize, get_IsSynchronized, Clone, CompareTo, Equals, GetHashCode, CopyTo, CopyTo, GetEnumerator, Initialize, System.Int32 Length, System.Int64 LongLength, System.Int32 Rank, System.Object SyncRoot, System.Boolean IsReadOnly, System.Boolean IsFixedSize, System.Boolean IsSynchronized, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, get_Length, get_LongLength, GetLength, GetLongLength, get_Rank, GetUpperBound, GetLowerBound, get_SyncRoot, get_IsReadOnly, get_IsFixedSize, get_IsSynchronized, Clone, CompareTo, Equals, GetHashCode, CopyTo, CopyTo, GetEnumerator, Initialize, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Int32 Length, System.Int64 LongLength, System.Int32 Rank, System.Object SyncRoot, System.Boolean IsReadOnly, System.Boolean IsFixedSize, System.Boolean IsSynchronized}" + HasElementType="True" + IsArray="True" + IsClass="True" + IsCompilerGenerated="True"> + - null + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]" + GetGenericArguments="{System.Int32}" + GetMembers="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + IsClass="True" + IsGenericType="True"> + null - + @@ -862,17 +1043,19 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]]].MyGenClass`1[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]]]" + Value="{Debugger.Tests.TestPrograms.DebugType[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]]].MyGenClass`1[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]]]}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]]].MyGenClass`1[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]]]" + GetGenericArguments="{Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]}" + GetMembers="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + IsClass="True" + IsGenericType="True"> + null @@ -880,17 +1063,19 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]].MyNestedClass[[System.Int32]]" + Value="{Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]].MyNestedClass[[System.Int32]]}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]].MyNestedClass[[System.Int32]]" + GetGenericArguments="{System.Int32}" + GetMembers="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + IsClass="True" + IsGenericType="True"> + null @@ -898,17 +1083,19 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[System.Int32, System.Char]].MyGenClass`1[[System.Int32, System.Char]].MyGenNestedClass`1[[System.Int32, System.Char]]" + Value="{Debugger.Tests.TestPrograms.DebugType[[System.Int32, System.Char]].MyGenClass`1[[System.Int32, System.Char]].MyGenNestedClass`1[[System.Int32, System.Char]]}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32, System.Char]].MyGenClass`1[[System.Int32, System.Char]].MyGenNestedClass`1[[System.Int32, System.Char]]" + GetGenericArguments="{System.Int32, System.Char}" + GetMembers="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + IsClass="True" + IsGenericType="True"> + null @@ -916,17 +1103,19 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]" + Value="{Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]" + GetGenericArguments="{System.Int32}" + GetMembers="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsGenericType="True" + IsValueType="True"> + null @@ -934,27 +1123,35 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]][]" + Value="{Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]][]}"> - + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]][]" + GetArrayRank="1" + GetElementType="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]" + GetMembers="{GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, get_Length, get_LongLength, GetLength, GetLongLength, get_Rank, GetUpperBound, GetLowerBound, get_SyncRoot, get_IsReadOnly, get_IsFixedSize, get_IsSynchronized, Clone, CompareTo, Equals, GetHashCode, CopyTo, CopyTo, GetEnumerator, Initialize, System.Int32 Length, System.Int64 LongLength, System.Int32 Rank, System.Object SyncRoot, System.Boolean IsReadOnly, System.Boolean IsFixedSize, System.Boolean IsSynchronized, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, GetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, SetValue, get_Length, get_LongLength, GetLength, GetLongLength, get_Rank, GetUpperBound, GetLowerBound, get_SyncRoot, get_IsReadOnly, get_IsFixedSize, get_IsSynchronized, Clone, CompareTo, Equals, GetHashCode, CopyTo, CopyTo, GetEnumerator, Initialize, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Int32 Length, System.Int64 LongLength, System.Int32 Rank, System.Object SyncRoot, System.Boolean IsReadOnly, System.Boolean IsFixedSize, System.Boolean IsSynchronized}" + HasElementType="True" + IsArray="True" + IsClass="True" + IsCompilerGenerated="True"> + - null + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenStruct`1[[System.Int32]]" + GetGenericArguments="{System.Int32}" + GetMembers="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsGenericType="True" + IsValueType="True"> + null - + @@ -962,17 +1159,19 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]]].MyGenStruct`1[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]]]" + Value="{Debugger.Tests.TestPrograms.DebugType[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]]].MyGenStruct`1[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]]]}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]]].MyGenStruct`1[[Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]]]" + GetGenericArguments="{Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyGenClass`1[[System.Int32]]}" + GetMembers="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsGenericType="True" + IsValueType="True"> + null @@ -980,17 +1179,19 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[System.Int32, System.Char]].MyGenStruct`1[[System.Int32, System.Char]].MyGenNestedStruct`1[[System.Int32, System.Char]]" + Value="{Debugger.Tests.TestPrograms.DebugType[[System.Int32, System.Char]].MyGenStruct`1[[System.Int32, System.Char]].MyGenNestedStruct`1[[System.Int32, System.Char]]}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32, System.Char]].MyGenStruct`1[[System.Int32, System.Char]].MyGenNestedStruct`1[[System.Int32, System.Char]]" + GetGenericArguments="{System.Int32, System.Char}" + GetMembers="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + IsGenericType="True" + IsValueType="True"> + null @@ -998,18 +1199,22 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyInterfaceImpl`1[[System.Int32]]" + Value="{Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyInterfaceImpl`1[[System.Int32]]}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyInterfaceImpl`1[[System.Int32]]" + GetFields="{System.Void* voidPtr}" + GetGenericArguments="{System.Int32}" + GetInterfaces="{Debugger.Tests.TestPrograms.DebugType[[System.Int32, Debugger.Tests.TestPrograms.DebugType.MyClass, Debugger.Tests.TestPrograms.DebugType.MyStruct]].MyInterface`3[[System.Int32, Debugger.Tests.TestPrograms.DebugType.MyClass, Debugger.Tests.TestPrograms.DebugType.MyStruct]]}" + GetMembers="{System.Void* voidPtr, get_Prop, Fun, Fun2, .ctor, System.Collections.Generic.List`1[[System.Int32]] Prop, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{get_Prop, Fun, Fun2, .ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Collections.Generic.List`1[[System.Int32]] Prop}" + IsClass="True" + IsGenericType="True"> + null @@ -1017,16 +1222,18 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType[[System.Int32, Debugger.Tests.TestPrograms.DebugType.MyClass, Debugger.Tests.TestPrograms.DebugType.MyStruct]].MyInterface`3[[System.Int32, Debugger.Tests.TestPrograms.DebugType.MyClass, Debugger.Tests.TestPrograms.DebugType.MyStruct]]" + Value="{Debugger.Tests.TestPrograms.DebugType[[System.Int32]].MyInterfaceImpl`1[[System.Int32]]}"> - null + Attributes="AutoLayout, AnsiClass, Class, NestedPublic, ClassSemanticsMask, Abstract" + FullName="Debugger.Tests.TestPrograms.DebugType[[System.Int32, Debugger.Tests.TestPrograms.DebugType.MyClass, Debugger.Tests.TestPrograms.DebugType.MyStruct]].MyInterface`3[[System.Int32, Debugger.Tests.TestPrograms.DebugType.MyClass, Debugger.Tests.TestPrograms.DebugType.MyStruct]]" + GetGenericArguments="{System.Int32, Debugger.Tests.TestPrograms.DebugType.MyClass, Debugger.Tests.TestPrograms.DebugType.MyStruct}" + GetMembers="{Fun}" + GetMethods="{Fun}" + IsGenericType="True" + IsInterface="True"> + null @@ -1034,37 +1241,43 @@ namespace Debugger.Tests { + Type="System.Collections.Generic.List`1[[System.Int32]]" + Value="{System.Collections.Generic.List`1[[System.Int32]]}"> - null + FullName="System.Collections.Generic.List`1[[System.Int32]]" + GetGenericArguments="{System.Int32}" + GetInterfaces="{System.Collections.Generic.IList`1[[System.Int32]], System.Collections.Generic.ICollection`1[[System.Int32]], System.Collections.Generic.IEnumerable`1[[System.Int32]], System.Collections.IList, System.Collections.ICollection, System.Collections.IEnumerable}" + GetMembers="{.ctor, .ctor, .ctor, get_Capacity, set_Capacity, get_Count, get_Item, set_Item, Add, AddRange, AsReadOnly, BinarySearch, BinarySearch, BinarySearch, Clear, Contains, ConvertAll, CopyTo, CopyTo, CopyTo, Exists, Find, FindAll, FindIndex, FindIndex, FindIndex, FindLast, FindLastIndex, FindLastIndex, FindLastIndex, ForEach, GetEnumerator, GetRange, IndexOf, IndexOf, IndexOf, Insert, InsertRange, LastIndexOf, LastIndexOf, LastIndexOf, Remove, RemoveAll, RemoveAt, RemoveRange, Reverse, Reverse, Sort, Sort, Sort, Sort, ToArray, TrimExcess, TrueForAll, System.Int32 Capacity, System.Int32 Count, System.Int32 Item, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, .ctor, .ctor, get_Capacity, set_Capacity, get_Count, get_Item, set_Item, Add, AddRange, AsReadOnly, BinarySearch, BinarySearch, BinarySearch, Clear, Contains, ConvertAll, CopyTo, CopyTo, CopyTo, Exists, Find, FindAll, FindIndex, FindIndex, FindIndex, FindLast, FindLastIndex, FindLastIndex, FindLastIndex, ForEach, GetEnumerator, GetRange, IndexOf, IndexOf, IndexOf, Insert, InsertRange, LastIndexOf, LastIndexOf, LastIndexOf, Remove, RemoveAll, RemoveAt, RemoveRange, Reverse, Reverse, Sort, Sort, Sort, Sort, ToArray, TrimExcess, TrueForAll, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Int32 Capacity, System.Int32 Count, System.Int32 Item}" + IsClass="True" + IsGenericType="True"> + null + Name="listEnumerator" + Type="System.Collections.Generic.List`1[[System.Int32]].Enumerator[[System.Int32]]" + Value="{System.Collections.Generic.List`1[[System.Int32]].Enumerator[[System.Int32]]}"> - null + FullName="System.Collections.Generic.List`1[[System.Int32]].Enumerator[[System.Int32]]" + GetGenericArguments="{System.Int32}" + GetInterfaces="{System.Collections.Generic.IEnumerator`1[[System.Int32]], System.IDisposable, System.Collections.IEnumerator}" + GetMembers="{Dispose, MoveNext, get_Current, System.Int32 Current, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{Dispose, MoveNext, get_Current, Equals, GetHashCode, ToString, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Int32 Current}" + IsGenericType="True" + IsValueType="True"> + null @@ -1072,16 +1285,76 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType.AddDelegate" + Value="{Debugger.Tests.TestPrograms.DebugType.AddDelegate}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType.AddDelegate" + GetMembers="{.ctor, Invoke, BeginInvoke, EndInvoke, GetObjectData, Equals, GetInvocationList, GetHashCode, DynamicInvoke, Equals, GetHashCode, GetInvocationList, get_Method, get_Target, Clone, GetObjectData, System.Reflection.MethodInfo Method, System.Object Target, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{.ctor, Invoke, BeginInvoke, EndInvoke, GetObjectData, Equals, GetInvocationList, GetHashCode, DynamicInvoke, Equals, GetHashCode, GetInvocationList, get_Method, get_Target, Clone, GetObjectData, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Reflection.MethodInfo Method, System.Object Target}" + IsClass="True"> + null + + + + + + + + + null + + + + + + + + + null + + + + + + + + + null @@ -1089,16 +1362,19 @@ namespace Debugger.Tests { + Type="Debugger.Tests.TestPrograms.DebugType.Access" + Value="{Debugger.Tests.TestPrograms.DebugType.Access}"> - null + FullName="Debugger.Tests.TestPrograms.DebugType.Access" + GetFields="{System.Int32 publicField}" + GetMembers="{System.Int32 publicField, get_publicProperty, publicMethod, .ctor, System.Int32 publicProperty, .ctor, ToString, Equals, GetHashCode, GetType}" + GetMethods="{get_publicProperty, publicMethod, .ctor, .ctor, ToString, Equals, GetHashCode, GetType}" + GetProperties="{System.Int32 publicProperty}" + IsClass="True"> + null diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_CompilerGeneratedClasses.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_CompilerGeneratedClasses.cs index c881c9a4c3..f08041ca4a 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_CompilerGeneratedClasses.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebugType_CompilerGeneratedClasses.cs @@ -70,20 +70,11 @@ namespace Debugger.Tests { public void DebugType_CompilerGeneratedClasses() { StartTest("DebugType_CompilerGeneratedClasses.cs"); - ObjectDump("YieldLocalVariables", - process.SelectedStackFrame.MethodInfo.LocalVariables. - Select(v => new { v.Name, Value = v.GetValue(process.SelectedStackFrame) }) - ); + PrintLocalVariables("YieldLocalVariables"); process.Continue(); - ObjectDump("OutterDelegateLocalVariables", - process.SelectedStackFrame.MethodInfo.LocalVariables. - Select(v => new { v.Name, Value = v.GetValue(process.SelectedStackFrame) }) - ); + PrintLocalVariables("OutterDelegateLocalVariables"); process.Continue(); - ObjectDump("InnterDelegateLocalVariables", - process.SelectedStackFrame.MethodInfo.LocalVariables. - Select(v => new { v.Name, Value = v.GetValue(process.SelectedStackFrame) }) - ); + PrintLocalVariables("InnterDelegateLocalVariables"); EndTest(); } } @@ -101,134 +92,159 @@ namespace Debugger.Tests { Break DebugType_CompilerGeneratedClasses.cs:35,5-35,41 - - - - - - - - Break DebugType_CompilerGeneratedClasses.cs:54,6-54,42 - - + Type="Debugger.Tests.TestPrograms.DebugType_CompilerGeneratedClasses.IntDelegate" + Value="{Debugger.Tests.TestPrograms.DebugType_CompilerGeneratedClasses.IntDelegate}" /> - - - - - - - Break DebugType_CompilerGeneratedClasses.cs:51,7-51,43 - - - - - - - - diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExpressionEvaluator.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExpressionEvaluator.cs index 52a23795a0..a7dbe684be 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExpressionEvaluator.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExpressionEvaluator.cs @@ -156,14 +156,14 @@ namespace Debugger.Tests { array[1] = e array[i] = o array[i - 1] = l - list = List<Char> {H, e, l, l, o} + list = List`1 {H, e, l, l, o} list[1] = e list[i] = o hi[1] = i "abcd"[2] = c list.Add(42); list.Add(52); - list = List<Char> {H, e, l, l, o, *, 4} + list = List`1 {H, e, l, l, o, *, 4} i = 10 = 10 -i = -10