57 references to TestDisplayFormat
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (56)
Semantics\NullableReferenceTypesTests.cs (56)
35014
Assert.Equal(expectedType, symbol.TypeWithAnnotations.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
35032
Assert.Equal(expectedType, symbol.TypeWithAnnotations.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145507
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145547
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145587
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145626
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145664
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145697
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145730
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145767
Assert.Equal("Extension<object>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145806
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145895
Assert.Equal(new[] { "I<object>", "I<object!>" }, interfaces.Select(i => i.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
)));
146076
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
146107
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
146140
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158106
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158108
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158140
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158142
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158178
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158180
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158206
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158208
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158238
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158240
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158246
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158249
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158282
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158377
Assert.Equal("object", ((IMethodSymbol)model.GetSymbolInfo(item).Symbol).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158407
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158409
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158415
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158418
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158448
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158450
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158458
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158488
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158490
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158499
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158534
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158567
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158662
Assert.Equal("object", ((IMethodSymbol)model.GetSymbolInfo(item).Symbol).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158668
Assert.Equal("object", ((IMethodSymbol)found).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158702
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158704
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158710
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158744
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158746
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158754
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158791
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158825
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158827
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158857
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158859
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158891
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158893
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
486
return type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
);