57 references to TestDisplayFormat
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (56)
Semantics\NullableReferenceTypesTests.cs (56)
33047
Assert.Equal(expectedType, symbol.TypeWithAnnotations.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
33065
Assert.Equal(expectedType, symbol.TypeWithAnnotations.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141097
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141137
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141177
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141216
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141254
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141287
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141320
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141357
Assert.Equal("Extension<object>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141396
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141485
Assert.Equal(new[] { "I<object>", "I<object!>" }, interfaces.Select(i => i.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
)));
141666
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141697
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
141730
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
153515
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153517
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153549
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153551
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153587
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153589
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153615
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153617
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153647
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153649
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153655
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
153658
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
153691
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
153786
Assert.Equal("object", ((IMethodSymbol)model.GetSymbolInfo(item).Symbol).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
153816
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153818
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153824
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
153827
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
153857
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153859
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153867
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
153897
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153899
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
153908
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
153943
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
153976
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
154071
Assert.Equal("object", ((IMethodSymbol)model.GetSymbolInfo(item).Symbol).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
154077
Assert.Equal("object", ((IMethodSymbol)found).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
154111
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
154113
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
154119
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
154153
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
154155
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
154163
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
154200
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
154234
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
154236
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
154266
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
154268
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
154300
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
154302
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
479
return type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
);