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