57 references to TestDisplayFormat
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (56)
Semantics\NullableReferenceTypesTests.cs (56)
34986
Assert.Equal(expectedType, symbol.TypeWithAnnotations.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
35004
Assert.Equal(expectedType, symbol.TypeWithAnnotations.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145445
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145485
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145525
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145564
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145602
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145635
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145668
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145705
Assert.Equal("Extension<object>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145744
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145833
Assert.Equal(new[] { "I<object>", "I<object!>" }, interfaces.Select(i => i.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
)));
146014
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
146045
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
146078
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158044
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158046
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158078
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158080
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158116
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158118
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158144
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158146
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158176
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158178
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158184
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158187
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158220
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158315
Assert.Equal("object", ((IMethodSymbol)model.GetSymbolInfo(item).Symbol).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158345
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158347
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158353
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158356
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158386
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158388
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158396
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158426
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158428
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158437
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158472
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158505
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158600
Assert.Equal("object", ((IMethodSymbol)model.GetSymbolInfo(item).Symbol).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158606
Assert.Equal("object", ((IMethodSymbol)found).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158640
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158642
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158648
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158682
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158684
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158692
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158729
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158763
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158765
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158795
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158797
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158829
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158831
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
486
return type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
);