466 references to FormatResult
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider.UnitTests (355)
AccessibilityTests.cs (3)
107var evalResult = FormatResult(rootExpr, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.HideNonPublicMembers)); 268var evalResult = FormatResult(rootExpr, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.HideNonPublicMembers)); 366var evalResult = FormatResult("o", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.HideNonPublicMembers));
ArrayExpansionTests.cs (17)
22var evalResult = FormatResult(rootExpr, value); 37var evalResult = FormatResult(rootExpr, value); 54var evalResult = FormatResult(rootExpr, value); 73var evalResult = FormatResult(rootExpr, value); 91var evalResult = FormatResult(rootExpr, value); 98evalResult = FormatResult(rootExpr, value); 105evalResult = FormatResult(rootExpr, value); 112evalResult = FormatResult(rootExpr, value); 122var evalResult = FormatResult(rootExpr, CreateDkmClrValue(new int[][,,] { null, new int[2, 3, 4] })); 144var evalResult = FormatResult(rootExpr, value); 177var evalResult = FormatResult("o", value); 209var evalResult = FormatResult("o", value); 243var evalResult = FormatResult("o", value); 270var evalResult = FormatResult(rootExpr, value); 288var evalResult = FormatResult("o", value, inspectionContext: inspectionContext); 307var evalResult = FormatResult("a", value, inspectionContext: inspectionContext); 330var evalResult = FormatResult(rootExpr, value);
CustomResultProviderTests.cs (2)
62var evalResult = FormatResult("P", value); 91var evalResult = FormatResult("o", value);
DebuggerBrowsableAttributeTests.cs (16)
43var evalResult = FormatResult("new C()", value); 106var evalResult = FormatResult("c", value); 149var evalResult = FormatResult("this", value); 195var evalResult = FormatResult("o", value); 235var evalResult = FormatResult("o", value); 274var evalResult = FormatResult("o", value); 319var evalResult = FormatResult("o", value); 358var evalResult = FormatResult("o", value); 393var evalResult = FormatResult("o", value); 441var evalResult = FormatResult("o", value); 485var evalResult = FormatResult("o", value); 520var evalResult = FormatResult("o", value); 562var evalResult = FormatResult("o", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.HideNonPublicMembers)); 608var evalResult = FormatResult("o", value, inspectionContext: inspectionContext); 652var evalResult = FormatResult("o", value); 685var evalResult = FormatResult("new C()", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.HideNonPublicMembers));
DebuggerDisplayAttributeTests.cs (20)
57Verify(GetChildren(FormatResult("w", value)), 89Verify(GetChildren(FormatResult("c", value)), 117Verify(GetChildren(FormatResult("w", value)), 139Verify(FormatResult(rootExpr, value), 168Verify(FormatResult(rootExpr, value), 192Verify(FormatResult(rootExpr, value), 214Verify(FormatResult(rootExpr, value), 239Verify(GetChildren(FormatResult("w", value)), 261Verify(FormatResult(rootExpr, value), 294var root = FormatResult(rootExpr, value); 333var root = FormatResult("wrapper", value); 399Verify(DepthFirstSearch(FormatResult("c", testValue), maxDepth: 3), 457var root = FormatResult("c", value); 506var root = FormatResult("c", value); 535Verify(FormatResult(rootExpr, value), 552var result = FormatResult("b", value); 580var result = FormatResult("a", CreateDkmClrValue(instanceA)); 584result = FormatResult("b", CreateDkmClrValue(instanceB)); 612var evalResult = FormatResult("o", value); 635var result = FormatResult("a", CreateDkmClrValue(instanceA));
DebuggerTypeProxyAttributeTests.cs (21)
66var evalResult = FormatResult(rootExpr, value); 136var evalResult = FormatResult(rootExpr, value); 195var evalResult = FormatResult(rootExpr, value); 256var evalResult = FormatResult(rootExpr, value); 321var evalResult = FormatResult(rootExpr, value); 412var evalResult = FormatResult(rootExpr, value); 521var evalResult = FormatResult(rootExpr, value); 577var evalResult = FormatResult(rootExpr, value); 622var evalResult = FormatResult(rootExpr, value); 653var evalResult = FormatResult(rootExpr, value); 700var evalResult = FormatResult(rootExpr, value); 741var evalResult = FormatResult(rootExpr, value); 784var evalResult = FormatResult(rootExpr, value); 840var evalResult = FormatResult(rootExpr, value); 886var evalResult = FormatResult(rootExpr, value); 948var evalResult = FormatResult(rootExpr, value); 972evalResult = FormatResult(rootExpr, value); 1013var evalResult = FormatResult(rootExpr, value); 1055var evalResult = FormatResult(rootExpr, value); 1098var evalResult = FormatResult(rootExpr, value); 1141var evalResult = FormatResult("new C()", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.HideNonPublicMembers));
DebuggerVisualizerAttributeTests.cs (1)
46var evalResult = FormatResult("new C()", value);
DynamicTests.cs (2)
43var evalResult = FormatResult(rootExpr, value); 287var evalResult = FormatResult("o", value);
DynamicViewTests.cs (8)
33var result = FormatResult(expression, value); 56var result = FormatResult(expression, value); 84var result = FormatResult(expression, value); 105var result = FormatResult(expression, value); 138var result = FormatResult(expression, value); 158var result = FormatResult(expression, value); 175var result = FormatResult(expression, value); 192var result = FormatResult(expression, value);
ExpansionTests.cs (100)
31Verify(FormatResult("null", CreateDkmClrValue(null, typeof(object), evalFlags: DkmEvaluationResultFlags.None)), EvalResult("null", "null", "object", "null")); 32Verify(FormatResult("new object()", CreateDkmClrValue(new object())), EvalResult("new object()", "{object}", "object", "new object()")); 34Verify(FormatResult("DBNull.Value", CreateDkmClrValue(DBNull.Value)), EvalResult("DBNull.Value", "{}", "System.DBNull", "DBNull.Value", DkmEvaluationResultFlags.Expandable)); 36Verify(FormatResult("new Boolean()", CreateDkmClrValue(new Boolean())), EvalResult("new Boolean()", "false", "bool", "new Boolean()", DkmEvaluationResultFlags.Boolean)); 37Verify(FormatResult("false", CreateDkmClrValue(false, typeof(bool), evalFlags: DkmEvaluationResultFlags.Boolean)), EvalResult("false", "false", "bool", "false", DkmEvaluationResultFlags.Boolean)); 38Verify(FormatResult("true", CreateDkmClrValue(true, typeof(bool), evalFlags: DkmEvaluationResultFlags.Boolean | DkmEvaluationResultFlags.BooleanTrue)), EvalResult("true", "true", "bool", "true", DkmEvaluationResultFlags.Boolean | DkmEvaluationResultFlags.BooleanTrue)); 40Verify(FormatResult("new Char()", CreateDkmClrValue(new Char())), EvalResult("new Char()", "0 '\\0'", "char", "new Char()", editableValue: "'\\0'")); 42Verify(FormatResult("new SByte()", CreateDkmClrValue(new SByte())), EvalResult("new SByte()", "0", "sbyte", "new SByte()")); 44Verify(FormatResult("new Byte()", CreateDkmClrValue(new Byte())), EvalResult("new Byte()", "0", "byte", "new Byte()")); 46Verify(FormatResult("new Int16()", CreateDkmClrValue(new Int16())), EvalResult("new Int16()", "0", "short", "new Int16()")); 48Verify(FormatResult("new UInt16()", CreateDkmClrValue(new UInt16())), EvalResult("new UInt16()", "0", "ushort", "new UInt16()")); 50Verify(FormatResult("new Int32()", CreateDkmClrValue(new Int32())), EvalResult("new Int32()", "0", "int", "new Int32()")); 52Verify(FormatResult("new UInt32()", CreateDkmClrValue(new UInt32())), EvalResult("new UInt32()", "0", "uint", "new UInt32()")); 54Verify(FormatResult("new Int64()", CreateDkmClrValue(new Int64())), EvalResult("new Int64()", "0", "long", "new Int64()")); 56Verify(FormatResult("new UInt64()", CreateDkmClrValue(new UInt64())), EvalResult("new UInt64()", "0", "ulong", "new UInt64()")); 58Verify(FormatResult("new Single()", CreateDkmClrValue(new Single())), EvalResult("new Single()", "0", "float", "new Single()")); 60Verify(FormatResult("new Double()", CreateDkmClrValue(new Double())), EvalResult("new Double()", "0", "double", "new Double()")); 62Verify(FormatResult("new Decimal()", CreateDkmClrValue(new Decimal())), EvalResult("new Decimal()", "0", "decimal", "new Decimal()", editableValue: "0M")); 72Verify(FormatResult("stringNull", CreateDkmClrValue(null, typeof(string), evalFlags: DkmEvaluationResultFlags.None)), EvalResult("stringNull", "null", "string", "stringNull")); 73Verify(FormatResult("\"\"", CreateDkmClrValue("")), EvalResult("\"\"", "\"\"", "string", "\"\"", DkmEvaluationResultFlags.RawString, editableValue: "\"\"")); 96var evalResult = (DkmSuccessEvaluationResult)FormatResult(rootExpr, value); 144var evalResult = FormatResult(rootExpr, value); 182var evalResult = FormatResult("o", value); 211var evalResult = FormatResult("o", value); 243var evalResult = FormatResult(rootExpr, value); 281var evalResult = FormatResult(rootExpr, value); 323var evalResult = FormatResult(rootExpr, value); 353var evalResult = (DkmSuccessEvaluationResult)FormatResult(rootExpr, value); 384var evalResult = (DkmSuccessEvaluationResult)FormatResult(rootExpr, value); 446var evalResult = (DkmSuccessEvaluationResult)FormatResult(rootExpr, value); 476var evalResult = FormatResult(rootExpr, value); 516var evalResult = FormatResult(rootExpr, value); 554var evalResult = FormatResult(rootExpr, value); 580var evalResult = FormatResult(rootExpr, value); 617var evalResult = FormatResult(rootExpr, value); 659var evalResult = FormatResult(rootExpr, value); 691var evalResult = FormatResult(rootExpr, value); 739var evalResult = FormatResult(rootExpr, value); 779var evalResult = FormatResult(rootExpr, value); 821var evalResult = FormatResult(rootExpr, value); 850var evalResult = FormatResult(rootExpr, value); 855evalResult = FormatResult(rootExpr, value); 876var evalResult = FormatResult(rootExpr, value); 917var evalResult = FormatResult(rootExpr, value); 970var evalResult = FormatResult(rootExpr, value); 1010var evalResult = FormatResult("o", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.NoExpansion)); 1017evalResult = FormatResult("o", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.NoExpansion)); 1023evalResult = FormatResult("o", value); 1063var evalResult = FormatResult("o", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.NoExpansion)); 1069evalResult = FormatResult("o", value); 1083var evalResult = FormatResult("a", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.NoExpansion)); 1107var evalResult = FormatResult("o", value); 1136var evalResult = FormatResult("o", value); 1169var evalResult = FormatResult(rootExpr, value); 1222var evalResult = FormatResult(rootExpr, value); 1329var evalResult = FormatResult(rootExpr, value); 1346evalResult = FormatResult(rootExpr, value); 1375var evalResult = FormatResult("c", value); 1413var children = GetChildren(FormatResult("c", CreateDkmClrValue(instanceC))); 1465var children = GetChildren(FormatResult("c", CreateDkmClrValue(instanceC))); 1514var children = GetChildren(FormatResult("c", CreateDkmClrValue(instanceC))); 1552var children = GetChildren(FormatResult("s", CreateDkmClrValue(value))); 1595var children = GetChildren(FormatResult("s", CreateDkmClrValue(value))); 1631var children = GetChildren(FormatResult("s", value)); 1678var children = GetChildren(FormatResult("s", value)); 1695var evalResult = FormatResult("c.P", value); 1722var evalResult = FormatResult("c?.str.Length", value, runtime.GetType(typeof(int?))); 1755var evalResult = FormatResult("c", value); 1772var evalResult = FormatResult("str", value); 1782var evalResult = FormatResult("c", value); 1788evalResult = FormatResult("c", value, inspectionContext: CreateDkmInspectionContext(radix: 16)); 1794evalResult = FormatResult("c", value, inspectionContext: CreateDkmInspectionContext(radix: 16)); 1803var evalResult = FormatResult("s", value); 1824var evalResult = FormatResult("o", value); 1845var evalResult = FormatResult("a", value, new DkmClrType((TypeImpl)declaredType)); 1861var evalResult = FormatResult("o", value, declaredType: runtime.GetType("System.Object")); 1891var evalResult = FormatResult("o", value); 1933var evalResult = FormatResult("o", value); 1960var result = FormatResult("b", value); 1967result = FormatResult("a", value, new DkmClrType((TypeImpl)typeA)); 1992var result = FormatResult("c", value); 1999result = FormatResult("b", value, new DkmClrType((TypeImpl)typeB)); 2025var result = FormatResult("c", value); 2050var result = FormatResult("c", value); 2075var result = FormatResult("c", value); 2103var result = FormatResult("b", value); 2129var result = FormatResult("c", value); 2164var result = FormatResult("b", value, new DkmClrType((TypeImpl)typeB)); 2203var result = FormatResult("b", value, new DkmClrType((TypeImpl)typeB)); 2235var result = FormatResult("c", value, new DkmClrType((TypeImpl)typeC)); 2282var evalResult = FormatResult("o", value, inspectionContext: inspectionContext); 2332var evalResult = FormatResult("o.P", memberValue); 2353var evalResult = FormatResult("(C)o", value); 2362evalResult = FormatResult("(C)((object)c)", value); 2371evalResult = FormatResult("((C[])o)[0]", value); 2388var evalResult = FormatResult("a", value); 2425var evalResult = FormatResult("a", value); 2472var evalResult = FormatResult("a", value); 2535Verify(FormatResult(rootExpr, value), 2557var evalResult = FormatResult("s", value);
FormatSpecifierTests.cs (28)
25var evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 31evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 37evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 43evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 49evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 55evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 61evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 67evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 73evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 79evalResult = FormatResult("a", value, inspectionContext: inspectionContext); 97var evalResult = FormatResult("c", value, inspectionContext: inspectionContext); 103evalResult = FormatResult("c", value, inspectionContext: inspectionContext); 109evalResult = FormatResult("c", value, inspectionContext: inspectionContext); 115evalResult = FormatResult("c", value, inspectionContext: inspectionContext); 121evalResult = FormatResult("c", value, inspectionContext: inspectionContext); 127evalResult = FormatResult("c", value, inspectionContext: inspectionContext); 133evalResult = FormatResult("c", value, inspectionContext: inspectionContext); 139evalResult = FormatResult("a", value, inspectionContext: inspectionContext); 164var evalResult = FormatResult("o", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.NoQuotes)); 178var evalResult = FormatResult("i", value, inspectionContext: inspectionContext); 184evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 190evalResult = FormatResult("a", value, inspectionContext: inspectionContext); 265var evalResult = FormatResult("o", value, inspectionContext: inspectionContext); 271evalResult = FormatResult("s", value, inspectionContext: inspectionContext); 277evalResult = FormatResult("i", value, inspectionContext: inspectionContext); 283evalResult = FormatResult("a", value, inspectionContext: inspectionContext); 292evalResult = FormatResult("l", value, inspectionContext: inspectionContext); 301evalResult = FormatResult("i", value, inspectionContext: inspectionContext);
FullNameTests.cs (49)
95var root = FormatResult("a // Comment", value); 98root = FormatResult(" a // Comment", value); 101root = FormatResult("a// Comment", value); 104root = FormatResult("a /*b*/ +c /*d*/// Comment", value); 107root = FormatResult("a /*//*/+ c// Comment", value); 110root = FormatResult("a /*/**/+ c// Comment", value); 113root = FormatResult("/**/a// Comment", value); 117root = FormatResult(@"""a//b/*"" // c", value); 121root = FormatResult(@"""a"" //""b", value); 138var root = FormatResult("a, raw", value); // simple 142root = FormatResult("a, raw, ac, h", value); // multiple specifiers 146root = FormatResult("M(a, b), raw", value); // non-specifier comma 150root = FormatResult("a, raw1", value); // alpha-numeric 154root = FormatResult("a, $raw", value); // other punctuation 172var root = FormatResult("a + b", value); 175root = FormatResult("new C()", value); 178root = FormatResult("A.B", value); 181root = FormatResult("A::B", value); 198var root = FormatResult("a;", value); 201root = FormatResult("a + b;;", value); 204root = FormatResult(" M( ) ; ;", value); 222var root = FormatResult("a; //", value); 226root = FormatResult("a // ;", value); 230root = FormatResult("a;, ac", value); 234root = FormatResult("a, ac;", value); 238root = FormatResult("a//, ac", value); 242root = FormatResult("a, ac //", value); 246root = FormatResult("/*A*/ a /*B*/ + /*C*/ b /*D*/ ; ; , ac /*E*/, raw // ;, hidden", value); 265var root = FormatResult("@namespace", value); 270root = FormatResult("this", value); 277root = FormatResult("namespace", CreateDkmClrValue(new object())); 304var root = FormatResult("o", value, new DkmClrType((TypeImpl)declaredType)); 331var root = FormatResult("o", value); 354var root = FormatResult("o", value); 371var root = FormatResult("o", value); 399var root = FormatResult("instance", value); 440var root = FormatResult("o", value); 482var root = FormatResult("o", baseValue); 491root = FormatResult("o", derivedValue); 556var root = FormatResult("instance", value); 603var root = FormatResult("o", value); 635var root = FormatResult("o", baseValue); 677var evalResult = FormatResult(rootExpr, value); 740var root = FormatResult("o", value); 775var root = FormatResult("o", value); 807var root = FormatResult("o", value); 839var root = FormatResult("o", value); 873var root = FormatResult("o", value); 905var root = FormatResult("o", value);
FunctionPointerTests.cs (2)
40var evalResult = FormatResult("pfn", value); 66var evalResult = FormatResult("o", value);
NativeViewTests.cs (1)
49var evalResult = FormatResult("o", value, inspectionContext: inspectionContext);
ObjectFavoritesTests.cs (6)
65var evalResult = FormatResult(rootExpr, value); 118var evalResult = FormatResult(rootExpr, value); 169var evalResult = FormatResult(rootExpr, value, null, CreateDkmInspectionContext(DkmEvaluationFlags.FilterToFavorites)); 210var evalResult = FormatResult(rootExpr, value); 242var evalResult = FormatResult(rootExpr, value, null, CreateDkmInspectionContext(DkmEvaluationFlags.UseSimpleDisplayString)); 284var evalResult = FormatResult(rootExpr, value);
ObjectIdTests.cs (19)
26FormatResult("i", value, objectType), 31FormatResult("c", value, objectType), 36FormatResult("c", value, objectType, inspectionContext: CreateDkmInspectionContext(radix: 16)), 41FormatResult("e", value, objectType), 46FormatResult("s", value), 51FormatResult("d", value, objectType), 56FormatResult("a", value, objectType), 70Verify(FormatResult("o", value), EvalResult("o", "{object}", "object", "o", DkmEvaluationResultFlags.HasObjectId)); 73Verify(FormatResult("o", value), EvalResult("o", "{object} {$}", "object", "o", DkmEvaluationResultFlags.HasObjectId)); 76Verify(FormatResult("o", value), EvalResult("o", "{object} {$ }", "object", "o", DkmEvaluationResultFlags.HasObjectId)); 79Verify(FormatResult("o", value), EvalResult("o", "{object} {$-1}", "object", "o", DkmEvaluationResultFlags.HasObjectId)); 82Verify(FormatResult("o", value), EvalResult("o", "{object} {$1.1AB}", "object", "o", DkmEvaluationResultFlags.HasObjectId)); 85Verify(FormatResult("o", value), EvalResult("o", "{object} {1#}", "object", "o", DkmEvaluationResultFlags.HasObjectId)); 88Verify(FormatResult("o", value), EvalResult("o", "{object} {$1#}", "object", "o", DkmEvaluationResultFlags.HasObjectId)); 91Verify(FormatResult("o", value), EvalResult("o", "{object} {$${}}", "object", "o", DkmEvaluationResultFlags.HasObjectId)); 108var evalResult = FormatResult("o", value, new DkmClrType((TypeImpl)type.BaseType)); 131var evalResult = FormatResult("o", value); 153var evalResult = FormatResult("o", value); 178var evalResult = FormatResult("o", value);
ResultsViewTests.cs (34)
51var evalResult = FormatResult("o", value); 87var evalResult = FormatResult("o", value); 122var evalResult = FormatResult("o", value); 178var evalResult = FormatResult("o", value); 229var evalResult = FormatResult("o", value); 285var evalResult = FormatResult("o", value); 353var evalResult = FormatResult("o", value); 433var evalResult = FormatResult("o", value); 553var evalResult = FormatResult("o", value); 639var evalResult = FormatResult("o", value); 710var evalResult = FormatResult("o", value); 769var evalResult = FormatResult("o", value); 812var evalResult = FormatResult("o", value); 856var evalResult = FormatResult("sm", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.ShowValueRaw)); 871evalResult = FormatResult("sm", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.None)); 916var evalResult = FormatResult("sm", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.ShowValueRaw)); 935evalResult = FormatResult("sm", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.None)); 998var evalResult = FormatResult("o", value); 1022evalResult = FormatResult("o", value); 1046evalResult = FormatResult("o", value); 1115var evalResult = FormatResult("a", value); 1139evalResult = FormatResult("b", value); 1208var evalResult = FormatResult("o", value); 1250var evalResult = FormatResult("o", value); 1292var evalResult = FormatResult("o", value); 1373var evalResult = FormatResult("o", value); 1485var evalResult = FormatResult("o", value); 1520var evalResult = FormatResult("o", value); 1571var evalResult = FormatResult("o", value); 1621var evalResult = FormatResult("o.P", memberValue); 1655var evalResult = FormatResult("o", value); 1817var evalResult = FormatResult(name, value); 1830evalResult = FormatResult(name, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.ResultsOnly)); 1849return FormatResult(
TupleTests.cs (23)
172var evalResult = FormatResult("o", value); 205var evalResult = FormatResult("o", value); 242var evalResult = FormatResult("o", value, inspectionContext: inspectionContext); 336var evalResult = FormatResult("o", value); 365var evalResult = FormatResult("o", value); 401var evalResult = FormatResult("o", value); 433var evalResult = FormatResult("o", value); 485var evalResult = FormatResult("o", value); 514var evalResult = FormatResult("o", value); 560var evalResult = FormatResult("o", value); 600var evalResult = FormatResult("o", value); 668var evalResult = FormatResult("o", value); 711var evalResult = FormatResult("o", value); 759var evalResult = FormatResult("o", value); 834var evalResult = FormatResult("o", value); 867var evalResult = FormatResult("o", value); 906var evalResult = FormatResult("o", value); 981var evalResult = FormatResult("o", value, inspectionContext: inspectionContext); 1032var evalResult = FormatResult("o", value); 1124var evalResult = FormatResult("o", value); 1143var evalResult = FormatResult("o", value); 1169var evalResult = FormatResult("o", value); 1209var evalResult = FormatResult("o", value);
TypeVariablesExpansionTests.cs (1)
41var evalResult = FormatResult("typevars", value);
ValueFormattingTests.cs (2)
257Assert.Equal(errorMessage, ((DkmFailedEvaluationResult)FormatResult("invalidIdentifier", clrValue)).ErrorMessage); 265Assert.Equal(errorMessage, ((DkmFailedEvaluationResult)FormatResult("invalidIdentifier", clrValue)).ErrorMessage);
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ResultProvider.UnitTests (111)
ArrayExpansionTests.vb (1)
23Dim children = GetChildren(FormatResult("c", CreateDkmClrValue(Activator.CreateInstance(typeC))))
DebuggerTypeProxyAttributeTests.vb (1)
56Dim result = FormatResult("o", value)
DynamicViewTests.vb (8)
30Dim result = FormatResult(expression, value) 52Dim result = FormatResult(expression, value) 79Dim result = FormatResult(expression, value) 99Dim result = FormatResult(expression, value) 129Dim result = FormatResult(expression, value) 148Dim result = FormatResult(expression, value) 164Dim result = FormatResult(expression, value) 180Dim result = FormatResult(expression, value)
ExpansionTests.vb (26)
43Dim result = FormatResult(rootExpr, value) 78Dim result = FormatResult(rootExpr, value) 126Dim result = FormatResult(rootExpr, value) 170Dim result = FormatResult(rootExpr, value) 235Dim children = GetChildren(FormatResult("c", CreateDkmClrValue(Activator.CreateInstance(typeC)))) 268Dim result = FormatResult("str", value) 279Dim result = FormatResult("c", value) 286result = FormatResult("c", value, inspectionContext:=CreateDkmInspectionContext(radix:=16)) 295Dim result = FormatResult("s", value) 317Dim result = FormatResult("o", value) 396Dim result = FormatResult(rootExpr, value) 413result = FormatResult(rootExpr, value) 439Dim result = FormatResult("a", value, New DkmClrType(CType(declaredType, TypeImpl))) 459Dim result = FormatResult("b", value) 466result = FormatResult("a", value, New DkmClrType(CType(typeA, TypeImpl))) 487Dim result = FormatResult("c", value) 494result = FormatResult("b", value, New DkmClrType(CType(typeB, TypeImpl))) 517Dim result = FormatResult("c", value) 541Dim result = FormatResult("c", value) 565Dim result = FormatResult("c", value) 590Dim result = FormatResult("b", value) 614Dim result = FormatResult("c", value) 668Dim result = FormatResult("b", value, New DkmClrType(CType(typeB, TypeImpl))) 695Dim result = FormatResult("c", value, New DkmClrType(CType(typeC, TypeImpl))) 729Dim result = FormatResult("a", CreateDkmClrValue(instanceA)) 733result = FormatResult("b", CreateDkmClrValue(instanceB))
FormatSpecifierTests.vb (15)
23Dim result = FormatResult("s", value, inspectionContext:=inspectionContext) 29result = FormatResult("s", value, inspectionContext:=inspectionContext) 35result = FormatResult("s", value, inspectionContext:=inspectionContext) 41result = FormatResult("s", value, inspectionContext:=inspectionContext) 47result = FormatResult("s", value, inspectionContext:=inspectionContext) 53result = FormatResult("s", value, inspectionContext:=inspectionContext) 59result = FormatResult("s", value, inspectionContext:=inspectionContext) 65result = FormatResult("a", value, inspectionContext:=inspectionContext) 82Dim result = FormatResult("c", value, inspectionContext:=inspectionContext) 88result = FormatResult("c", value, inspectionContext:=inspectionContext) 94result = FormatResult("c", value, inspectionContext:=inspectionContext) 100result = FormatResult("c", value, inspectionContext:=inspectionContext) 106result = FormatResult("c", value, inspectionContext:=inspectionContext) 112result = FormatResult("c", value, inspectionContext:=inspectionContext) 118result = FormatResult("a", value, inspectionContext:=inspectionContext)
FullNameTests.vb (37)
83Dim root = FormatResult("a ' Comment", value) 86root = FormatResult(" a ' Comment", value) 89root = FormatResult("a' Comment", value) 92root = FormatResult("a +c '' Comment", value) 95root = FormatResult("a + c' Comment", value) 99root = FormatResult("''a' Comment", value) 103root = FormatResult("""a'b"" ' c", value) 107root = FormatResult("""a"" '""b", value) 122Dim root = FormatResult("a, raw", value) ' simple 126root = FormatResult("a, raw, ac, h", value) ' multiple specifiers 130root = FormatResult("M(a, b), raw", value) ' non - specifier comma 134root = FormatResult("a, raw1", value) ' alpha - numeric 138root = FormatResult("a, $raw", value) ' other punctuation 154Dim root = FormatResult("a + b", value) 157root = FormatResult("new C()", value) 160root = FormatResult("A.B", value) 163root = FormatResult("Global.A.B", value) 180Dim root = FormatResult("a;", value) 183root = FormatResult("a + b;", value) 186root = FormatResult(" M( ) ; ", value) 202Dim root = FormatResult("a', ac", value) 206root = FormatResult("a, ac , raw ', h", value) 222Dim root = FormatResult("[Namespace]", value) 227root = FormatResult("Me", value) 234root = FormatResult("Namespace", CreateDkmClrValue(New Object())) 274Dim root = FormatResult("o", value) 315Dim root = FormatResult("o", baseValue) 324root = FormatResult("o", derivedValue) 388Dim root = FormatResult("instance", value) 434Dim root = FormatResult("o", value) 465Dim root = FormatResult("o", baseValue) 520Dim root = FormatResult("o", value) 554Dim root = FormatResult("o", value) 585Dim root = FormatResult("o", value) 616Dim root = FormatResult("o", value) 649Dim root = FormatResult("o", value) 680Dim root = FormatResult("o", value)
ObjectFavoritesTests.vb (6)
51Dim result = FormatResult(rootExpr, value) 102Dim result = FormatResult(rootExpr, value) 150Dim result = FormatResult(rootExpr, value, Nothing, CreateDkmInspectionContext(DkmEvaluationFlags.FilterToFavorites)) 190Dim result = FormatResult(rootExpr, value) 221Dim result = FormatResult(rootExpr, value, Nothing, CreateDkmInspectionContext(DkmEvaluationFlags.UseSimpleDisplayString)) 260Dim result = FormatResult(rootExpr, value)
ObjectIdTests.vb (7)
23FormatResult("i", value, objectType), 28FormatResult("i", value, objectType, inspectionContext:=CreateDkmInspectionContext(radix:=16)), 33FormatResult("c", value, objectType), 38FormatResult("e", value, objectType), 43FormatResult("s", value), 48FormatResult("d", value, objectType), 53FormatResult("a", value, objectType),
ResultsViewTests.vb (3)
39Dim result = FormatResult("o", value) 90Dim result = FormatResult("o", value) 131Dim result = FormatResult("o", value)
TupleTests.vb (4)
35Dim result = FormatResult("o", value) 115Dim result = FormatResult("o", value) 155Dim result = FormatResult("o", value) 201Dim result = FormatResult("o", value)
TypeVariablesExpansionTests.vb (1)
38Dim result = FormatResult("typevars", value)
ValueFormatterTests.vb (2)
209Assert.Equal(errorMessage, (DirectCast(FormatResult("invalidIdentifier", clrValue), DkmFailedEvaluationResult)).ErrorMessage) 216Assert.Equal(errorMessage, (DirectCast(FormatResult("invalidIdentifier", clrValue), DkmFailedEvaluationResult)).ErrorMessage)