29 references to MakeCustomTypeInfo
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider.UnitTests (27)
DynamicTests.cs (8)
25
var evalResult = FormatResult(rootExpr, rootExpr, value, declaredType: new DkmClrType((TypeImpl)typeof(object)), declaredTypeInfo:
MakeCustomTypeInfo
(true));
69
var evalResult = FormatResult(rootExpr, rootExpr, value, new DkmClrType((TypeImpl)typeC_Constructed2),
MakeCustomTypeInfo
(false, true, false, false, true));
98
var evalResult = FormatResult(rootExpr, rootExpr, value, new DkmClrType((TypeImpl)typeInner_Constructed),
MakeCustomTypeInfo
(false, true, false));
133
var evalResult = FormatResult(rootExpr, rootExpr, value, new DkmClrType((TypeImpl)typeC_Constructed),
MakeCustomTypeInfo
(false, false, false, true, false));
178
var evalResult = FormatResult(rootExpr, rootExpr, value, new DkmClrType((TypeImpl)typeC_Constructed),
MakeCustomTypeInfo
(false, true, false));
213
var evalResult = FormatResult(rootExpr, rootExpr, value, new DkmClrType((TypeImpl)typeDerived_Constructed),
MakeCustomTypeInfo
(false, true, false));
235
var evalResult = FormatResult(rootExpr, rootExpr, value, declaredType: new DkmClrType((TypeImpl)typeof(object[])), declaredTypeInfo:
MakeCustomTypeInfo
(false, true));
257
var evalResult = FormatResult("typevars", "typevars", value, new DkmClrType((TypeImpl)reflectionType),
MakeCustomTypeInfo
(false, true, false, false, true));
TypeNameFormatterTests.cs (19)
309
Assert.Equal("dynamic", typeof(object).GetTypeName(
MakeCustomTypeInfo
(attributes), escapeKeywordIdentifiers: false));
310
Assert.Equal("dynamic", typeof(object).GetTypeName(
MakeCustomTypeInfo
(attributes), escapeKeywordIdentifiers: true));
317
Assert.Equal("dynamic", typeof(object).GetTypeName(
MakeCustomTypeInfo
(true)));
320
Assert.Equal("dynamic[]", typeof(object[]).GetTypeName(
MakeCustomTypeInfo
(false, true)));
321
Assert.Equal("dynamic[][]", typeof(object[][]).GetTypeName(
MakeCustomTypeInfo
(false, false, true)));
324
Assert.Equal("System.Func<dynamic>", typeof(Func<object>).GetTypeName(
MakeCustomTypeInfo
(false, true)));
347
Assert.Equal("N.A<object>.B<dynamic>", typeBConstructed.GetTypeName(
MakeCustomTypeInfo
(false, false, true)));
348
Assert.Equal("N.A<dynamic>.B<object>", typeBConstructed.GetTypeName(
MakeCustomTypeInfo
(false, true, false)));
349
Assert.Equal("N.A<dynamic>.B<dynamic>[]", typeBConstructed.MakeArrayType().GetTypeName(
MakeCustomTypeInfo
(false, false, true, true)));
356
Assert.Equal("int", typeof(int).GetTypeName(
MakeCustomTypeInfo
(true)));
357
Assert.Equal("dynamic[]", typeof(object[]).GetTypeName(
MakeCustomTypeInfo
(true, true)));
360
Assert.Equal("dynamic", typeof(object).GetTypeName(
MakeCustomTypeInfo
(true, true)));
361
Assert.Equal("object", typeof(object).GetTypeName(
MakeCustomTypeInfo
(false, true)));
364
Assert.Equal("object[]", typeof(object[]).GetTypeName(
MakeCustomTypeInfo
(true)));
365
Assert.Equal("object[]", typeof(object[]).GetTypeName(
MakeCustomTypeInfo
(false)));
368
Assert.Equal("System.Func<object>", typeof(Func<object>).GetTypeName(
MakeCustomTypeInfo
(true)));
391
Assert.Equal("N.A<object>.B<object>", typeBConstructed.GetTypeName(
MakeCustomTypeInfo
(false)));
392
Assert.Equal("N.A<dynamic>.B<object>", typeBConstructed.GetTypeName(
MakeCustomTypeInfo
(false, true)));
393
Assert.Equal("N.A<dynamic>.B<object>[]", typeBConstructed.MakeArrayType().GetTypeName(
MakeCustomTypeInfo
(false, false, true)));
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ResultProvider.UnitTests (2)
TypeNameFormatterTests.vb (2)
273
Assert.Equal("Object", GetType(Object).GetTypeName(
MakeCustomTypeInfo
(True)))
274
Assert.Equal("Object()", GetType(Object()).GetTypeName(
MakeCustomTypeInfo
(False, True)))