5 writes to Type
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
CompilationTestUtils.cs (5)
238summary.Type = typeInfo.Type; 249summary.Type = typeInfo.Type; 266summary.Type = typeInfo.Type; 275summary.Type = typeInfo.Type; 312summary.Type = typeInfo.Type;
926 references to Type
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (148)
Semantics\ExpressionBodiedMemberTests.cs (11)
75Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 139Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 157Assert.Equal("C", semanticInfo.Type.Name); 178Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 226Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 259Assert.Equal(TypeKind.TypeParameter, semanticInfo.Type.TypeKind); 260Assert.Equal("T", semanticInfo.Type.Name); 264Assert.Equal(m.TypeParameters[0], semanticInfo.Type.GetSymbol()); 266Assert.Equal(m, semanticInfo.Type.ContainingSymbol.GetSymbol()); 282Assert.Equal("Program", semanticInfo.Type.Name); 315Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType);
Semantics\FunctionPointerTests.cs (2)
3966Assert.Equal("delegate*<?, System.Void>", semanticInfo.Type.ToTestDisplayString()); 3967Assert.Equal(semanticInfo.Type, semanticInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability);
Semantics\InteractiveSemanticModelTests.cs (17)
85Assert.NotNull(bindInfo.Type); 86Assert.Equal("System.Void", bindInfo.Type.ToTestDisplayString()); 95Assert.Null(bindInfo.Type); 107Assert.NotNull(bindInfo.Type); 108Assert.Equal("System.Boolean", bindInfo.Type.ToTestDisplayString()); 126Assert.Equal(SpecialType.System_Int32, bindInfo.Type.SpecialType); 141Assert.Equal(SpecialType.System_Int32, bindInfo.Type.SpecialType); 157Assert.Equal("System.Random", semanticInfo.Type.ToTestDisplayString()); 158Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 182Assert.Equal("var", semanticInfo.Type.ToTestDisplayString()); 183Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 208Assert.Equal("Script.var", semanticInfo.Type.ToTestDisplayString()); 209Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 236Assert.Equal("Script.var", semanticInfo.Type.ToTestDisplayString()); 237Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 268Assert.Equal(SpecialType.System_Char, semanticInfo.Type.SpecialType); 350Assert.NotNull(bindInfo.Type);
Semantics\InterpolationTests.cs (3)
4607Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 4827Assert.Equal("CustomHandler", semanticInfo.Type.ToTestDisplayString()); 4834Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType);
Semantics\QueryTests.cs (5)
2179Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 2209Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 2236Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 2242Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 2248Assert.Equal(SpecialType.System_Int32, info2.Type.SpecialType);
Semantics\RawInterpolationTests_Handler.cs (3)
2908Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 3128Assert.Equal("CustomHandler", semanticInfo.Type.ToTestDisplayString()); 3135Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType);
Semantics\ScriptSemanticsTests.cs (2)
251Assert.Equal(TypeKind.Error, summary.Type.TypeKind); 568Assert.Equal(TypeKind.Error, summary.Type.TypeKind);
Semantics\StackAllocInitializerTests.cs (57)
374Assert.Equal("System.String*", stackallocInfo.Type.ToTestDisplayString()); 380Assert.Equal("System.String", element0Info.Type.ToTestDisplayString()); 388Assert.Equal("<empty anonymous type>*", stackallocInfo.Type.ToTestDisplayString()); 394Assert.Equal("<empty anonymous type>", element0Info.Type.ToTestDisplayString()); 402Assert.Equal("Test.S*", stackallocInfo.Type.ToTestDisplayString()); 408Assert.Equal("Test.S", element0Info.Type.ToTestDisplayString()); 450Assert.Equal("System.Span<System.String>", stackallocInfo.Type.ToTestDisplayString()); 456Assert.Equal("System.String", element0Info.Type.ToTestDisplayString()); 464Assert.Equal("System.Span<<empty anonymous type>>", stackallocInfo.Type.ToTestDisplayString()); 470Assert.Equal("<empty anonymous type>", element0Info.Type.ToTestDisplayString()); 478Assert.Equal("System.Span<Test.S>", stackallocInfo.Type.ToTestDisplayString()); 484Assert.Equal("Test.S", element0Info.Type.ToTestDisplayString()); 1054Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.Type).PointedAtType.SpecialType); 1062Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 1070Assert.Equal("Span", obj3Value.Type.Name); 1078Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 1086Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType); 1157Assert.Equal("Span", obj1Value.Type.Name); 1165Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 1173Assert.Equal("Span", obj3Value.Type.Name); 1181Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 1189Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType); 2366Assert.Equal("System.Double*", stackallocInfo.Type.ToTestDisplayString()); 2372Assert.Equal("System.Int32", element0Info.Type.ToTestDisplayString()); 2378Assert.Equal("System.Double", element1Info.Type.ToTestDisplayString()); 2384Assert.Equal("System.Int32", sizeInfo.Type.ToTestDisplayString()); 2394Assert.Equal("System.Span<System.Double>", stackallocInfo.Type.ToTestDisplayString()); 2400Assert.Equal("System.Int32", element0Info.Type.ToTestDisplayString()); 2406Assert.Equal("System.Double", element1Info.Type.ToTestDisplayString()); 2412Assert.Equal("System.Int32", sizeInfo.Type.ToTestDisplayString()); 2422Assert.Equal("System.Span<System.Double>", stackallocInfo.Type.ToTestDisplayString()); 2428Assert.Equal("System.Int32", element0Info.Type.ToTestDisplayString()); 2434Assert.Equal("System.Double", element1Info.Type.ToTestDisplayString()); 2440Assert.Equal("System.Int32", sizeInfo.Type.ToTestDisplayString()); 2472Assert.Equal("System.Double*", stackallocInfo.Type.ToTestDisplayString()); 2478Assert.Equal("System.Int32", element0Info.Type.ToTestDisplayString()); 2484Assert.Equal("System.Double", element1Info.Type.ToTestDisplayString()); 2494Assert.Equal("System.Span<System.Double>", stackallocInfo.Type.ToTestDisplayString()); 2500Assert.Equal("System.Int32", element0Info.Type.ToTestDisplayString()); 2506Assert.Equal("System.Double", element1Info.Type.ToTestDisplayString()); 2516Assert.Equal("System.Span<System.Double>", stackallocInfo.Type.ToTestDisplayString()); 2522Assert.Equal("System.Int32", element0Info.Type.ToTestDisplayString()); 2528Assert.Equal("System.Double", element1Info.Type.ToTestDisplayString()); 2572Assert.Equal("System.Double*", stackallocInfo.Type.ToTestDisplayString()); 2578Assert.Equal("System.Int16", element0Info.Type.ToTestDisplayString()); 2584Assert.Equal("System.Int16", element1Info.Type.ToTestDisplayString()); 2590Assert.Equal("System.Int16", sizeInfo.Type.ToTestDisplayString()); 2600Assert.Equal("System.Double*", stackallocInfo.Type.ToTestDisplayString()); 2606Assert.Equal("System.Int16", element0Info.Type.ToTestDisplayString()); 2612Assert.Equal("System.Int32", element1Info.Type.ToTestDisplayString()); 2618Assert.Equal("System.Int32", sizeInfo.Type.ToTestDisplayString()); 2656Assert.Equal("System.Double*", stackallocInfo.Type.ToTestDisplayString()); 2662Assert.Equal("System.Double", element0Info.Type.ToTestDisplayString()); 2668Assert.Equal("System.Double", element1Info.Type.ToTestDisplayString()); 2678Assert.Equal("System.Span<System.Double>", stackallocInfo.Type.ToTestDisplayString()); 2684Assert.Equal("System.Double", element0Info.Type.ToTestDisplayString()); 2690Assert.Equal("System.Int32", element1Info.Type.ToTestDisplayString());
Semantics\StackAllocSpanExpressionsTests.cs (10)
60Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.Type).PointedAtType.SpecialType); 68Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 76Assert.Equal("Span", obj3Value.Type.Name); 84Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 92Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType); 135Assert.Equal("Span", obj1Value.Type.Name); 143Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 151Assert.Equal("Span", obj3Value.Type.Name); 159Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 167Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType);
Semantics\UnsafeTests.cs (38)
7864Assert.Equal(structPointerType, receiverSummary.Type.GetSymbol()); 7873Assert.Null(methodGroupSummary.Type); 7882Assert.Equal(SpecialType.System_Void, callSummary.Type.SpecialType); 7931Assert.Equal(structType, receiverSummary.Type.GetSymbol()); 7938Assert.Null(methodGroupSummary.Type); 7945Assert.Equal(SpecialType.System_Void, callSummary.Type.SpecialType); 7946Assert.Equal(callSummary.Type, callSummary.ConvertedType); 8175Assert.Equal(intPointerType, receiverSummary.Type.GetSymbol()); 8187Assert.Equal(intType, indexSummary.Type.GetSymbol()); 8196Assert.Equal(intType, accessSummary.Type.GetSymbol()); 8242Assert.Equal(intPointerType, receiverSummary.Type.GetSymbol()); 8255Assert.Equal(intType, accessSummary.Type.GetSymbol()); 8300Assert.Equal(intPointerType, receiverSummary.Type.GetSymbol()); 8313Assert.Equal(intType, accessSummary.Type.GetSymbol()); 8882Assert.Equal(pointerType, summary.Type.GetSymbol()); 8917Assert.Equal(SpecialType.System_Int64, summary.Type.SpecialType); 9344Assert.Equal(SpecialType.System_Boolean, summary.Type.SpecialType); 10244Assert.Equal(charPointerSymbol, summary0.Type.GetSymbol()); 10249Assert.Equal(arraySymbol.Type, summary1.Type.GetSymbol()); 10253Assert.Equal(stringSymbol, summary2.Type.GetSymbol()); 10311Assert.Equal(charPointerSymbol, summary0.Type.GetSymbol()); 10318Assert.Equal(arraySymbol.Type, summary1.Type.GetSymbol()); 10324Assert.Equal(stringSymbol, summary2.Type.GetSymbol()); 10637Assert.Equal(type, typeSummary.Type); 10649Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.SpecialType); 10650Assert.Equal(sizeOfSummary.Type, sizeOfSummary.ConvertedType); 10699Assert.Equal(type, typeSummary.Type); 10711Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.SpecialType); 10712Assert.Equal(sizeOfSummary.Type, sizeOfSummary.ConvertedType); 10759Assert.Equal(type, typeSummary.Type); 10771Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.SpecialType); 10772Assert.Equal(sizeOfSummary.Type, sizeOfSummary.ConvertedType); 11311Assert.Equal(SpecialType.System_Char, ((IPointerTypeSymbol)stackAllocSummary.Type).PointedAtType.SpecialType); 11323Assert.Equal(SpecialType.System_Char, typeSummary.Type.SpecialType); 11324Assert.Equal(typeSummary.Type, typeSummary.ConvertedType); 11326Assert.Equal(typeSummary.Symbol, typeSummary.Type); 11335Assert.Equal(SpecialType.System_Int16, countSummary.Type.SpecialType); 11339Assert.Equal(countSummary.Type, countSymbol.Type);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (769)
Compilation\GetSemanticInfoTests.cs (15)
979Assert.Equal("Boolean", info.Type.Name); 1143Assert.Equal(SpecialType.System_Boolean, info.Type.SpecialType); 1167Assert.Equal(systemActionType, bindInfo.Type); 1196Assert.Equal(systemActionType, bindInfo.Type); 1221Assert.Equal(systemActionType, bindInfo.Type); 1244Assert.Null(bindInfo.Type); 1270Assert.Equal(systemActionType, bindInfo.Type); 1298Assert.Equal(systemActionType, bindInfo.Type); 1325Assert.Equal(SpecialType.System_Void, bindInfo.Type.SpecialType); 1352Assert.Equal(SpecialType.System_Void, bindInfo.Type.SpecialType); 1380Assert.Equal(SpecialType.System_Void, bindInfo.Type.SpecialType); 1422Assert.Equal(SpecialType.System_Int32, bindInfo.Type.SpecialType); 1463Assert.Equal(SpecialType.System_Int32, bindInfo.Type.SpecialType); //still have the type since all candidates agree 1497Assert.Equal(TypeKind.Error, bindInfo.Type.TypeKind); 4305Assert.Null(info.Type);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (27)
2257Assert.NotNull(info.Type); 2258Assert.Equal("String", info.Type.Name); 2293Assert.NotNull(info.Type); 2294Assert.Equal("String", info.Type.Name); 2330Assert.Equal(TypeKind.Error, info.Type.TypeKind); 2366Assert.NotNull(info.Type); 2403Assert.Null(info.Type); 2432Assert.NotNull(info.Type); 2433Assert.Equal("C", info.Type.Name); 2464Assert.NotNull(info.Type); 2465Assert.Equal("C", info.Type.Name); 2472Assert.NotNull(info.Type); 2473Assert.Equal("Int32", info.Type.Name); 2502Assert.Null(info.Type); 2538Assert.NotNull(info.Type); 2540Assert.Equal("D", info.Type.Name); 2541Assert.Equal("N", info.Type.ContainingNamespace.Name); 2568Assert.NotNull(info.Type); 2569Assert.Equal("String", info.Type.Name); 2598Assert.Null(info.Type); 3240Assert.NotNull(info.Type); 3241Assert.Equal("strin", info.Type.Name); 3242Assert.Equal(compilation.Assembly.GlobalNamespace, info.Type.ContainingSymbol); //error type resides in global namespace 3273Assert.Null(initInfo.Type); 3288Assert.Null(argInfo.Type); 4093Assert.Equal("System.Int32", semanticInfoExpression.Type.ToTestDisplayString()); 4098Assert.Equal("System.Console", semanticInfoExpression.Type.ToTestDisplayString());
Compilation\SemanticModelGetSemanticInfoTests.cs (663)
47Assert.Null(semanticInfo.Type); 84Assert.Equal("K<System.Int32>", semanticInfo.Type.ToTestDisplayString()); 85Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 115Assert.Equal("K<T>", semanticInfo.Type.ToTestDisplayString()); 116Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 149Assert.Equal("K<T>", semanticInfo.Type.ToTestDisplayString()); 150Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 190Assert.Equal("K<T>", semanticInfo.Type.ToTestDisplayString()); 191Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 231Assert.Equal("K<T>", semanticInfo.Type.ToTestDisplayString()); 232Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 271Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 272Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 308Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 309Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 342Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 404Assert.Null(semanticInfo.Type); 430Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 461Assert.Equal("K", semanticInfo.Type.ToTestDisplayString()); 462Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 501Assert.Equal("?", semanticInfo.Type.ToTestDisplayString()); 502Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 544Assert.Equal("N1.A", semanticInfo.Type.ToTestDisplayString()); 545Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 592Assert.Equal("N1.A", semanticInfo.Type.ToTestDisplayString()); 593Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 640Assert.Equal("N1.A<System.Int32>", semanticInfo.Type.ToTestDisplayString()); 641Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 693Assert.Equal("I1.P", semanticInfo.Type.ToTestDisplayString()); 694Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 724Assert.Equal("System.Object", semanticInfo.Type.ToTestDisplayString()); 725Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 760Assert.Equal("System.Object", semanticInfo.Type.ToTestDisplayString()); 761Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 796Assert.Null(semanticInfo.Type); 1642Assert.Equal("C", semanticInfo.Type.ToTestDisplayString()); 1643Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 1688Assert.Null(semanticInfo.Type); 1718Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 1719Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1748Assert.Null(semanticInfo.Type); 1778Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 1779Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1807Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 1808Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1837Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 1838Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1867Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 1868Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1897Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 1898Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 1926Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 1927Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 1956Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 1957Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 1986Assert.Equal("System.UInt32", semanticInfo.Type.ToTestDisplayString()); 1987Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2016Assert.Equal("System.UInt64?", semanticInfo.Type.ToTestDisplayString()); 2017Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2048Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 2049Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2080Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 2081Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2117Assert.Equal("System.Exception", semanticInfo.Type.ToTestDisplayString()); 2118Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2150Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 2151Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2190Assert.Equal("N1.I1", semanticInfo.Type.ToTestDisplayString()); 2191Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 2220Assert.Null(semanticInfo.Type); 2262Assert.Equal("A.Goo", semanticInfo.Type.ToTestDisplayString()); 2263Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2297Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 2298Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2347Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 2348Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2393Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 2394Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2436Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 2437Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2491Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 2492Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2543Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 2544Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2575Assert.Equal("Program", semanticInfo.Type.ToTestDisplayString()); 2576Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2613Assert.Null(semanticInfo.Type); 2648Assert.Equal("A", semanticInfo.Type.ToTestDisplayString()); 2649Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2689Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 2690Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2732Assert.Null(semanticInfo.Type); 2782Assert.Null(semanticInfo.Type); 2828Assert.Null(semanticInfo.Type); 2869Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 2870Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2907Assert.Null(semanticInfo.Type); 2945Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 2946Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2981Assert.Equal("Test.NestedTest.NestedNestedTest", semanticInfo.Type.ToTestDisplayString()); 2982Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3017Assert.Null(semanticInfo.Type); 3071Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 3072Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3116Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 3117Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3158Assert.Null(semanticInfo.Type); 3200Assert.Null(semanticInfo.Type); 3246Assert.Null(semanticInfo.Type); 3285Assert.Null(semanticInfo.Type); 3321Assert.Null(semanticInfo.Type); 3358Assert.Null(semanticInfo.Type); 3393Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 3394Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 3424Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 3425Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 3456Assert.Equal("System.Byte", semanticInfo.Type.ToTestDisplayString()); 3457Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 3491Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 3492Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 3522Assert.Equal("B", semanticInfo.Type.ToTestDisplayString()); 3523Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 3556Assert.Null(semanticInfo.Type); 3588Assert.Equal("N1.N2.A1", semanticInfo.Type.ToTestDisplayString()); 3589Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3626Assert.Equal("H<A>", semanticInfo.Type.ToTestDisplayString()); 3627Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3670Assert.Equal("H<H<A>, H<A>>", semanticInfo.Type.ToTestDisplayString()); 3671Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3704Assert.Equal("N1.N2.A2.A1", semanticInfo.Type.ToTestDisplayString()); 3705Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3738Assert.Equal("N1.NC1.A1", semanticInfo.Type.ToTestDisplayString()); 3739Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3772Assert.Equal("A.B", semanticInfo.Type.ToTestDisplayString()); 3773Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3802Assert.Equal("DateTime", semanticInfo.Type.ToTestDisplayString()); 3803Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 3834Assert.Equal("C<System.Int32>.Field", semanticInfo.Type.ToTestDisplayString()); 3835Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 3863Assert.Equal("C", semanticInfo.Type.ToTestDisplayString()); 3864Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3898Assert.Equal("T.T", semanticInfo.Type.ToTestDisplayString()); 3899Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3936Assert.Null(semanticInfo.Type); 3971Assert.Equal("B.Y.Z", semanticInfo.Type.ToTestDisplayString()); 3972Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 4006Assert.Equal("A<B.Y.Z>", semanticInfo.Type.ToTestDisplayString()); 4007Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4037Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 4038Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4068Assert.Equal("C", semanticInfo.Type.ToTestDisplayString()); 4069Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4107Assert.Null(semanticInfo.Type); 4134Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 4135Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4158Assert.Equal("List<System.Int32>", semanticInfo.Type.ToTestDisplayString()); 4159Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 4184Assert.Equal("List<System.Int32>", semanticInfo.Type.ToTestDisplayString()); 4185Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 4214Assert.Null(semanticInfo.Type); 4245Assert.Equal("C<T1>", semanticInfo.Type.ToTestDisplayString()); 4246Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4279Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 4280Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4317Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 4318Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4371Assert.Equal("F", semanticInfo.Type.ToTestDisplayString()); 4372Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 4385Assert.Equal(SymbolKind.Namespace, semanticInfo.Type.ContainingSymbol.Kind); 4386Assert.True(((INamespaceSymbol)semanticInfo.Type.ContainingSymbol).IsGlobalNamespace); 4404Assert.Null(semanticInfo.Type); 4442Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 4443Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4473Assert.Equal("System.Object", semanticInfo.Type.ToTestDisplayString()); 4474Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4502Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 4520Assert.Equal("System.Int16", semanticInfo.Type.ToTestDisplayString()); 4543Assert.Null(semanticInfo.Type); 4568Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 4569Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4606Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 4607Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4642Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 4643Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4672Assert.Equal("E", semanticInfo.Type.ToTestDisplayString()); 4673Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 4710Assert.Equal("E", semanticInfo.Type.ToTestDisplayString()); 4711Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 4746Assert.Equal("E", semanticInfo.Type.ToTestDisplayString()); 4747Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 4782Assert.Equal("E", semanticInfo.Type.ToTestDisplayString()); 4783Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 4813Assert.Equal("E", semanticInfo.Type.ToTestDisplayString()); 4814Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 4850Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 4851Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4877Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 4878Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4918Assert.Null(semanticInfo.Type); 4963Assert.Equal("Class1", semanticInfo.Type.ToTestDisplayString()); 4964Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5015Assert.Equal("Class1", semanticInfo.Type.ToTestDisplayString()); 5016Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5068Assert.Null(semanticInfo.Type); 5105Assert.Equal("Class1", semanticInfo.Type.ToTestDisplayString()); 5106Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5152Assert.Equal("Class1", semanticInfo.Type.ToTestDisplayString()); 5153Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5198Assert.Equal("Class1", semanticInfo.Type.ToTestDisplayString()); 5199Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5240Assert.Null(semanticInfo.Type); 5277Assert.Equal("Class1", semanticInfo.Type.ToTestDisplayString()); 5278Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5319Assert.Equal("Class1", semanticInfo.Type.ToTestDisplayString()); 5320Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5356Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 5381Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 5403Assert.Null(semanticInfo.Type); 5443Assert.Equal("C", semanticInfo.Type.ToTestDisplayString()); 5444Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 5479Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 5480Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5508Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 5509Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5541Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 5542Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5573Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 5574Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5605Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 5606Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5636Assert.Null(semanticInfo.Type); 5656Assert.Null(semanticInfo.Type); 5692Assert.Null(semanticInfo.Type); 5727Assert.Equal("System.Type", semanticInfo.Type.ToTestDisplayString()); 5728Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5760Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 5761Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5794Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 5795Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5827Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 5828Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5861Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 5862Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5895Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 5896Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5930Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 5931Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5963Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 5964Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5997Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 5998Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6030Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 6031Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6058Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 6059Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6089Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 6090Assert.Equal(SpecialType.System_Void, semanticInfo.Type.SpecialType); 6091Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6116Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 6117Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6143Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 6144Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6176Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 6177Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6209Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 6229Assert.Equal(SpecialType.System_String, ((IArrayTypeSymbol)semanticInfo.Type).ElementType.SpecialType); 6251Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 6304Assert.Equal(typeDisplayString, semanticInfo.Type.ToTestDisplayString()); 6328Assert.Equal("Outer.Inner", semanticInfo.Type.ToTestDisplayString()); 6329Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6348Assert.NotEqual(semanticInfo.Type, param.Type); 6364Assert.Equal("Struct", semanticInfo.Type.ToTestDisplayString()); 6365Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6397Assert.Null(semanticInfo.Type); 6435Assert.Null(semanticInfo.Type); 6518Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 6519Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6553Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 6554Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6590Assert.Equal("N1.var", semanticInfo.Type.ToTestDisplayString()); 6591Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6642Assert.Null(semanticInfo.Type); 6674Assert.Equal("C", semanticInfo.Type.ToTestDisplayString()); 6675Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6712Assert.Equal("int", semanticInfo.Type.ToString()); 6737Assert.Null(semanticInfo.Type); 6757Assert.Null(semanticInfo.Type); 6780Assert.Null(semanticInfo.Type); 6805Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 6806Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6841Assert.NotNull(semanticInfo.Type); 6842Assert.Equal("int", semanticInfo.Type.ToString()); 6874Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 6875Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6919Assert.Equal("System.Double", semanticInfo.Type.ToTestDisplayString()); 6920Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6964Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 6965Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6999Assert.Null(semanticInfo.Type); 7027Assert.Null(semanticInfo.Type); 7048Assert.Null(semanticInfo.Type); 7077Assert.Equal("Struct", semanticInfo.Type.ToTestDisplayString()); 7078Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7105Assert.Equal("MyAttribute", semanticInfo.Type.ToTestDisplayString()); 7106Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 7136Assert.Equal("N1.MyAttribute", semanticInfo.Type.ToTestDisplayString()); 7137Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 7168Assert.Equal("D", semanticInfo.Type.ToTestDisplayString()); 7169Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 7200Assert.Equal("?", semanticInfo.Type.ToTestDisplayString()); 7201Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 7232Assert.Equal("System.Func<System.Int32, System.Int32>", semanticInfo.Type.ToTestDisplayString()); 7233Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 7263Assert.Null(semanticInfo.Type); 7287Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 7288Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7315Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 7316Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7342Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 7343Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7377Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 7378Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7398Assert.Equal("System.Int64", semanticInfo.Type.ToTestDisplayString()); 7399Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7426Assert.Null(semanticInfo.Type); 7454Assert.Null(semanticInfo.Type); 7481Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 7482Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7525Assert.Equal(SymbolKind.NamedType, semanticInfo.Type.Kind); 7526Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 7530Assert.Equal(semanticInfo.Type, semanticInfo.ConvertedType); 7553Assert.Null(semanticInfo.Type); 7586Assert.Null(semanticInfo.Type); 7624Assert.Null(semanticInfo.Type); 7661Assert.Null(semanticInfo.Type); 7697Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 7698Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 7726Assert.Equal("S", semanticInfo.Type.ToTestDisplayString()); 7727Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7777Assert.NotNull(semanticInfo.Type); 7778Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind); 7796Assert.NotNull(semanticInfo.Type); 7797Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind); 7819Assert.Null(semanticInfo.Type); 7850Assert.Equal("C.MyDelegate", semanticInfo.Type.ToTestDisplayString()); 7851Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 7884Assert.Null(semanticInfo.Type); 7916Assert.Equal("C.MyDelegate", semanticInfo.Type.ToTestDisplayString()); 7917Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 7950Assert.Null(semanticInfo.Type); 7982Assert.Equal("System.Action", semanticInfo.Type.ToTestDisplayString()); 7983Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 8020Assert.Null(semanticInfo.Type); 8036Assert.Null(semanticInfo.Type); 8073Assert.Null(semanticInfo.Type); 8089Assert.Null(semanticInfo.Type); 8123Assert.NotNull(semanticInfo.Type); 8124Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind); 8147Assert.NotNull(semanticInfo.Type); 8148Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind); 8172Assert.NotNull(semanticInfo.Type); 8173Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 8196Assert.NotNull(semanticInfo.Type); 8197Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 8217Assert.NotNull(semanticInfo.Type); 8218Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 8240Assert.NotNull(semanticInfo.Type); 8241Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind); 8302Assert.NotNull(semanticInfo.Type); 8303Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 8334Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 8350Assert.NotNull(semanticInfo.Type); 8351Assert.Equal("AttributeUsageAttribute", semanticInfo.Type.Name); 8368Assert.Equal("Gen<T>", semanticInfo.Type.ToTestDisplayString()); 8369Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 8402Assert.Equal("Goo", semanticInfo.Type.ToTestDisplayString()); 8403Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 8439Assert.Null(semanticInfo.Type); 8463Assert.Null(semanticInfo.Type); 8485Assert.Equal("MyDelegate", semanticInfo.Type.ToTestDisplayString()); 8513Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 8514Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8559Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 8560Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 8604Assert.Equal("System.String", semanticInfo.Type.ToTestDisplayString()); 8605Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 8644Assert.Null(semanticInfo.Type); 8684Assert.Null(semanticInfo.Type); 8725Assert.Equal("System.Double", semanticInfo.Type.ToTestDisplayString()); 8726Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8768Assert.Null(semanticInfo.Type); 8808Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 8809Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8850Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 8851Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8892Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 8893Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8932Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 8933Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 9062Assert.Null(semanticInfo.Type); 9096Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 9122Assert.Equal("A.B", semanticInfo.Type.ToTestDisplayString()); 9123Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9159var type = semanticInfo.Type; 9183var type = semanticInfo.Type; 9211var type = semanticInfo.Type; 9235var type = semanticInfo.Type; 9265var type = (INamedTypeSymbol)semanticInfo.Type; 9357Assert.Equal("Blue.DescriptionAttribute", semanticInfo.Type.ToTestDisplayString()); 9358Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 9416Assert.Equal("Blue.DescriptionAttribute", semanticInfo.Type.ToTestDisplayString()); 9417Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 9455Assert.Equal("System.ObsoleteAttribute", semanticInfo.Type.ToTestDisplayString()); 9456Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9613Assert.Equal("ValidWithoutSuffix.Description", semanticInfo.Type.ToTestDisplayString()); 9614Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 9668Assert.Equal("ValidWithSuffix_And_ValidWithoutSuffix.Description", semanticInfo.Type.ToTestDisplayString()); 9669Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9719Assert.Equal("ValidWithSuffix_And_ValidWithoutSuffix.DescriptionAttribute", semanticInfo.Type.ToTestDisplayString()); 9720Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9779Assert.Equal("ValidWithSuffix_And_ValidWithoutSuffix.Description", semanticInfo.Type.ToTestDisplayString()); 9780Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 9830Assert.Equal("InvalidWithoutSuffix.Description", semanticInfo.Type.ToTestDisplayString()); 9831Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9885Assert.Equal("InvalidWithSuffix_And_InvalidWithoutSuffix.Description", semanticInfo.Type.ToTestDisplayString()); 9886Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 9916Assert.Equal("A1", semanticInfo.Type.ToTestDisplayString()); 9917Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9950Assert.Equal("System.ObsoleteAttribute", semanticInfo.Type.ToTestDisplayString()); 9951Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9986Assert.Equal("System.ObsoleteAttribute", semanticInfo.Type.ToTestDisplayString()); 9987Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10022Assert.Equal("System.ObsoleteAttribute", semanticInfo.Type.ToTestDisplayString()); 10023Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10058Assert.Equal("System.ObsoleteAttribute", semanticInfo.Type.ToTestDisplayString()); 10059Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10102Assert.Equal("AttributeClass", semanticInfo.Type.ToTestDisplayString()); 10103Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10139Assert.Equal("AttributeClass", semanticInfo.Type.ToTestDisplayString()); 10140Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10176Assert.Equal("AttributeClass.NonAttributeClass", semanticInfo.Type.ToTestDisplayString()); 10177Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10215Assert.Equal("AttributeClass.NonAttributeClass", semanticInfo.Type.ToTestDisplayString()); 10216Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10246Assert.Equal("C", semanticInfo.Type.ToTestDisplayString()); 10247Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10281Assert.Equal("Gen<System.Int32>", semanticInfo.Type.ToTestDisplayString()); 10282Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10316Assert.Equal("A", semanticInfo.Type.ToTestDisplayString()); 10317Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 10350Assert.Equal("Goo", semanticInfo.Type.ToTestDisplayString()); 10351Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 10384Assert.Equal("Goo", semanticInfo.Type.ToTestDisplayString()); 10385Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 10465Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 10466Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10493Assert.Equal("MyClass", semanticInfo.Type.ToTestDisplayString()); 10494Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10522Assert.Equal("System.Object", semanticInfo.Type.ToTestDisplayString()); 10523Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10557Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 10558Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10599Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 10600Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10636Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 10637Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10673Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 10674Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10712Assert.Equal("System.Action", semanticInfo.Type.ToTestDisplayString()); 10713Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 10755Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 10756Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10797Assert.Equal("System.Object", semanticInfo.Type.ToTestDisplayString()); 10798Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10834Assert.Equal("Gen<T>", semanticInfo.Type.ToTestDisplayString()); 10835Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10903Assert.Equal("System.Int32[]", semanticInfo.Type.ToTestDisplayString()); 10904Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 10941Assert.Equal("Program", semanticInfo.Type.Name); 10985Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 11010Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 11011Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11041Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 11042Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11074Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 11075Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11107Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 11108Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11143Assert.Equal("System.ObsoleteAttribute", semanticInfo.Type.ToTestDisplayString()); 11144Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 11189Assert.Null(semanticInfo.Type); 11221Assert.Equal("Goo", semanticInfo.Type.ToTestDisplayString()); 11222Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 11265Assert.Equal("System.Int16", semanticInfo.Type.ToTestDisplayString()); 11266Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11302Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 11303Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11339Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 11340Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11379Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 11380Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11401var type = (INamedTypeSymbol)semanticInfo.Type; 11426Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 11427Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11459Assert.Equal("System.Boolean", semanticInfo.Type.ToTestDisplayString()); 11460Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11496Assert.Equal("U", semanticInfo.Type.ToTestDisplayString()); 11497Assert.Equal(TypeKind.TypeParameter, semanticInfo.Type.TypeKind); 11536Assert.Null(semanticInfo.Type); 11571Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 11572Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11608Assert.Equal("System.Runtime.CompilerServices.IndexerNameAttribute", semanticInfo.Type.ToTestDisplayString()); 11639Assert.Null(semanticInfo.Type); 11673Assert.Null(semanticInfo.Type); 11709Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 11710Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11764Assert.Null(semanticInfo.Type); 11794Assert.Equal("System.Int32[]", semanticInfo.Type.ToTestDisplayString()); 11795Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11830Assert.Equal("System.Int32[]", semanticInfo.Type.ToTestDisplayString()); 11831Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11865Assert.Equal("System.Int32[,,]", semanticInfo.Type.ToTestDisplayString()); 11866Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11900Assert.Equal("System.Int32[][,,]", semanticInfo.Type.ToTestDisplayString()); 11901Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11936Assert.Equal("?[]", semanticInfo.Type.ToTestDisplayString()); 11937Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11972Assert.Equal("?[]", semanticInfo.Type.ToTestDisplayString()); 11973Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 12007Assert.Equal("?[,,]", semanticInfo.Type.ToTestDisplayString()); 12008Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 12042Assert.Equal("?[,,]", semanticInfo.Type.ToTestDisplayString()); 12043Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 12078Assert.Equal("System.Int32[]", semanticInfo.Type.ToTestDisplayString()); 12079Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 12106Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 12153Assert.Null(semanticInfo.Type); 12185Assert.Equal("Stat", semanticInfo.Type.ToTestDisplayString()); 12186Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 12220Assert.Null(semanticInfo.Type); 12255Assert.Equal("X", semanticInfo.Type.ToTestDisplayString()); 12256Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 12288Assert.Null(semanticInfo.Type); 12321Assert.Equal("T", semanticInfo.Type.ToTestDisplayString()); 12322Assert.Equal(TypeKind.TypeParameter, semanticInfo.Type.TypeKind); 12356Assert.Null(semanticInfo.Type); 12392Assert.Null(semanticInfo.Type); 12425Assert.Equal("X", semanticInfo.Type.ToTestDisplayString()); 12426Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 12454Assert.Null(semanticInfo.Type); 12483Assert.Equal("dynamic", semanticInfo.Type.ToTestDisplayString()); 12484Assert.Equal(TypeKind.Dynamic, semanticInfo.Type.TypeKind); 12525Assert.Equal("Conv", semanticInfo.Type.ToTestDisplayString()); 12526Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12571Assert.Equal("Conv?", semanticInfo.Type.ToTestDisplayString()); 12572Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12609Assert.Equal("Conv", semanticInfo.Type.ToTestDisplayString()); 12610Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12643Assert.Equal("Conv", semanticInfo.Type.ToTestDisplayString()); 12644Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12675Assert.Equal("MemberInitializerTest", semanticInfo.Type.ToTestDisplayString()); 12676Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 12708Assert.Null(semanticInfo.Type); 12738Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 12739Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12770Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 12771Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12802Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 12803Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12845Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 12846Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12884Assert.Null(semanticInfo.Type); 12921Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 12922Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12957Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 12958Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12995Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 12996Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13036Assert.Equal("MemberInitializerTest", semanticInfo.Type.ToTestDisplayString()); 13037Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13068Assert.Null(semanticInfo.Type); 13097Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 13098Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13128Assert.Equal("MemberInitializerTest", semanticInfo.Type.ToTestDisplayString()); 13129Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13162Assert.Equal("MemberInitializerTest", semanticInfo.Type.ToTestDisplayString()); 13163Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13196Assert.Equal("MemberInitializerTest", semanticInfo.Type.ToTestDisplayString()); 13197Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13229Assert.Null(semanticInfo.Type); 13262Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 13263Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13322Assert.Equal("B", semanticInfo.Type.ToTestDisplayString()); 13323Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13383Assert.Null(semanticInfo.Type); 13441Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 13442Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13502Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 13503Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13562Assert.Null(semanticInfo.Type); 13592Assert.Null(semanticInfo.Type); 13657Assert.Null(semanticInfo.Type); 13686Assert.Null(semanticInfo.Type); 13742Assert.Null(semanticInfo.Type); 13775Assert.Null(semanticInfo.Type); 13803Assert.Equal("?", semanticInfo.Type.ToTestDisplayString()); 13804Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 13838Assert.Equal("System.Int32", semanticInfo.Type.ToTestDisplayString()); 13839Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13872Assert.Equal("Gen<T>", semanticInfo.Type.ToTestDisplayString()); 13873Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13911Assert.Equal("Gen2<T>", semanticInfo.Type.ToTestDisplayString()); 13912Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13950Assert.Equal("System.Random", semanticInfo.Type.ToTestDisplayString()); 13951Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13977Assert.Equal("var", semanticInfo.Type.ToTestDisplayString()); 13978Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 14004Assert.Equal("var", semanticInfo.Type.ToTestDisplayString()); 14005Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 14043Assert.Null(semanticInfo.Type); 14080Assert.Equal("InterfaceType", semanticInfo.Type.ToTestDisplayString()); 14081Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14118Assert.Equal("InterfaceType", semanticInfo.Type.ToTestDisplayString()); 14119Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14158Assert.Equal("InterfaceType[]", semanticInfo.Type.ToTestDisplayString()); 14159Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 14202Assert.Null(semanticInfo.Type); 14244Assert.Equal("NonGenericInterfaceType", semanticInfo.Type.ToTestDisplayString()); 14245Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14292Assert.Null(semanticInfo.Type); 14336Assert.Equal("Wrapper.InterfaceType", semanticInfo.Type.ToTestDisplayString()); 14337Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14379Assert.Equal("InterfaceType", semanticInfo.Type.ToTestDisplayString()); 14380Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14419Assert.Null(semanticInfo.Type); 14508Assert.Null(semanticInfo.Type); 14540Assert.Equal("System.IFormattable", semanticInfo.Type.ToTestDisplayString()); 14541Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14569Assert.NotNull(semanticInfo.Type); 14578Assert.True(((ITypeSymbol)semanticInfo.Type).IsErrorType()); 14597Assert.Null(semanticInfo.Type); 14625Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString()); 14626Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 14665Assert.Null(semanticInfo.Type); 15083Assert.Equal("int", semanticInfo.Type.ToDisplayString()); 15084Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 15114Assert.Null(semanticInfo.Type); 15151Assert.Equal("string", semanticInfo.Type.ToDisplayString()); 15152Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 15182Assert.Equal("int", semanticInfo.Type.ToDisplayString()); 15183Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 15213Assert.Equal("int", semanticInfo.Type.ToDisplayString()); 15214Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 15244Assert.Equal("int", semanticInfo.Type.ToDisplayString()); 15245Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 15275Assert.Equal("char", semanticInfo.Type.ToDisplayString()); 15276Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 15306Assert.Null(semanticInfo.Type); 15337Assert.Equal("dynamic", semanticInfo.Type.ToDisplayString()); 15338Assert.Equal(TypeKind.Dynamic, semanticInfo.Type.TypeKind); 15404Assert.Equal("K", semanticInfo.Type.ToTestDisplayString()); 15405Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 15436Assert.Equal("C", info.Type.Name);
Compilation\SemanticModelGetSemanticInfoTests_LateBound.cs (26)
40Assert.Equal("C", semanticInfo.Type.Name); 64Assert.Equal("C", semanticInfo.Type.Name); 85Assert.Equal("C", semanticInfo.Type.Name); 111Assert.Equal("C", semanticInfo.Type.Name); 140Assert.True(semanticInfo.Type.IsDynamic()); 166Assert.True(semanticInfo.Type.IsDynamic()); 201Assert.True(semanticInfo.Type.IsDynamic()); 228Assert.True(semanticInfo.Type.IsDynamic()); 268Assert.True(semanticInfo.Type.IsDynamic()); 291Assert.Null(semanticInfo.Type); 318Assert.Null(semanticInfo.Type); 347Assert.True(semanticInfo.Type.IsDynamic()); 379Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 419Assert.Null(semanticInfo.Type); 514Assert.True(semanticInfo.Type.IsDynamic()); 551Assert.True(semanticInfo.Type.IsDynamic()); 586Assert.True(semanticInfo.Type.IsDynamic()); 614Assert.True(semanticInfo.Type.IsDynamic()); 651Assert.True(semanticInfo.Type.IsDynamic()); 678Assert.True(semanticInfo.Type.IsDynamic()); 706Assert.True(semanticInfo.Type.IsDynamic()); 741Assert.True(semanticInfo.Type.IsDynamic()); 770Assert.True(semanticInfo.Type.IsDynamic()); 797Assert.True(semanticInfo.Type.IsDynamic()); 825Assert.True(semanticInfo.Type.IsDynamic()); 856Assert.Equal("System.Void", semanticInfo.Type.ToTestDisplayString());
Symbols\AnonymousTypesSemanticsTests.cs (28)
80Assert.Equal("AnonymousTypePublicSymbol", info0.Type.GetSymbol().GetType().Name); 81Assert.False(((INamedTypeSymbol)info0.Type).IsSerializable); 83Assert.Equal(info0.Type, info2.Type); 84Assert.NotEqual(info0.Type, info1.Type); 90Assert.Equal(info3.Type, info4.Type); 318info0.Type.ToTestDisplayString()); 425Assert.Equal("<anonymous type: D1 module>", info0.Type.ToTestDisplayString()); 487Assert.Equal("<anonymous type: System.Func<System.Int32, System.Int32> F>", info0.Type.ToTestDisplayString()); 544Assert.Equal("<anonymous type: System.Type F123>", info0.Type.ToTestDisplayString()); 720var type = info0.Type; 739var type = info0.Type; 844Assert.Equal("<anonymous type: System.Int32 x, System.String y>", info0.Type.ToTestDisplayString()); 1049CheckAnonymousType(info0.Type, "", ""); 1054CheckAnonymousType(info0.Type, "", ""); 1151Assert.Equal("<anonymous type: ? aa, System.String BB, SSS CCC>", info0.Type.ToTestDisplayString()); 1152Assert.Equal("<anonymous type: SSS aa, System.Double BB, <anonymous type: ? aa, ? BB, ? CCC> CCC>", info1.Type.ToTestDisplayString()); 1153Assert.Equal("<anonymous type: ? aa, ? BB, ? CCC>", info2.Type.ToTestDisplayString()); 1339Assert.Equal("<empty anonymous type>", info0.Type.ToTestDisplayString()); 1404Assert.Equal("<anonymous type: System.Int32 aa, System.String $1, System.Double bb>", info0.Type.ToTestDisplayString()); 1406var properties = (from m in info0.Type.GetMembers() where m.Kind == SymbolKind.Property select m).ToArray(); 1492Assert.Equal("<anonymous type: System.String aa, System.Double abc>", info0.Type.ToTestDisplayString()); 1495var syms = data.Model.LookupSymbols(pos, container: info0.Type).Select(x => x.ToTestDisplayString()).OrderBy(x => x).ToArray(); 1511Assert.Equal("<empty anonymous type>", info0.Type.ToTestDisplayString()); 1514syms = data.Model.LookupSymbols(pos, container: info0.Type).Select(x => x.ToTestDisplayString()).OrderBy(x => x).ToArray(); 1986var type = info.Type;
Symbols\Source\UsingAliasTests.cs (10)
61Assert.Equal("System.Object", info2.Type.ToDisplayString(format: SymbolDisplayFormat.TestFormat)); 67Assert.Equal("System.Object", info3.Type.ToDisplayString(format: SymbolDisplayFormat.TestFormat)); 121Assert.Equal("System.Object", info2.Type.ToDisplayString(format: SymbolDisplayFormat.TestFormat)); 127Assert.Equal("System.Object", info3.Type.ToDisplayString(format: SymbolDisplayFormat.TestFormat)); 166Assert.Equal("System.Object", info1.Type.ToDisplayString(format: SymbolDisplayFormat.TestFormat)); 176Assert.Equal("System.Object", info2.Type.ToDisplayString(format: SymbolDisplayFormat.TestFormat)); 182Assert.Equal("System.Object", info3.Type.ToDisplayString(format: SymbolDisplayFormat.TestFormat)); 224Assert.Equal("System.Object", info1.Type.ToDisplayString(format: SymbolDisplayFormat.TestFormat)); 234Assert.Equal("System.Object", info2.Type.ToDisplayString(format: SymbolDisplayFormat.TestFormat)); 240Assert.Equal("System.Object", info3.Type.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (9)
FunctionPointerUtilities.cs (9)
152Assert.Null(semanticInfo.Type); 156exprType = semanticInfo.Type; 157AssertEx.Equal(expectedType, semanticInfo.Type.ToTestDisplayString(includeNonNullable: false)); 162Assert.Equal(semanticInfo.Type, semanticInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability); 194Assert.Null(semanticInfo.Type); 255Assert.Equal<ISymbol>(signatureType, semanticInfo.Type, SymbolEqualityComparer.Default); 256Assert.Equal(semanticInfo.Type, semanticInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability); 259Assert.Equal(signatureType, semanticInfo.Type, SymbolEqualityComparer.Default); 264var paramPtrType = (IFunctionPointerTypeSymbol)semanticInfo.Type!;