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
));
145495
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145535
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145575
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145614
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145652
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145685
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145718
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145755
Assert.Equal("Extension<object>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145794
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
145883
Assert.Equal(new[] { "I<object>", "I<object!>" }, interfaces.Select(i => i.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
)));
146064
Assert.Equal("Extension<object?>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
146095
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
146128
Assert.Equal("Extension<object!>", model.GetSymbolInfo(invocation).Symbol.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158094
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158096
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158128
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158130
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158166
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158168
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158194
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158196
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158226
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158228
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158234
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158237
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158270
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158365
Assert.Equal("object", ((IMethodSymbol)model.GetSymbolInfo(item).Symbol).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158395
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158397
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158403
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158406
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158436
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158438
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158446
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158476
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158478
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158487
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158522
Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158555
Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158650
Assert.Equal("object", ((IMethodSymbol)model.GetSymbolInfo(item).Symbol).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158656
Assert.Equal("object", ((IMethodSymbol)found).ReturnType.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158690
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158692
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158698
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158732
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158734
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158742
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158779
Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
));
158813
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158815
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158845
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158847
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158879
i3.Interfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
158881
i3.AllInterfaces().ToTestDisplayStrings(TypeWithAnnotations.
TestDisplayFormat
));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
486
return type.ToDisplayString(TypeWithAnnotations.
TestDisplayFormat
);