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
));
145504
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145544
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145584
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145623
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145661
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145694
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145727
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145764
Assert.Equal("Extension<object>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145803
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145892
Assert.Equal(new[] { "I<object>", "I<object!>" }, interfaces.Select(i => i.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
)));
146073
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
146104
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
146137
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158103
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158105
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158137
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158139
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158175
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158177
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158203
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158205
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158235
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158237
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158243
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158246
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158279
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158374
Assert.Equal("object", ((IMethodSymbol)model.GetSymbolInfo(item).Symbol).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158404
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158406
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158412
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158415
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158445
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158447
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158455
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158485
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158487
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158496
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158531
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158564
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158659
Assert.Equal("object", ((IMethodSymbol)model.GetSymbolInfo(item).Symbol).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158665
Assert.Equal("object", ((IMethodSymbol)found).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158699
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158701
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158707
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158741
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158743
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158751
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158788
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158822
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158824
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158854
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158856
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158888
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158890
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
486
return type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
);