39 references to TestFormat
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (39)
Emit\NumericIntPtrTests.cs (39)
575var actualMembers = members.SelectAsArray(m => m.ToDisplayString(TestFormat));
705var actualLocals = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Select(d => model.GetDeclaredSymbol(d).ToDisplayString(TestFormat));
1924var actualOperators = nodes.Select(n => model.GetSymbolInfo(n).Symbol.ToDisplayString(TestFormat)).ToArray();
1976var actualOperators = nodes.Select(n => model.GetSymbolInfo(n).Symbol.ToDisplayString(TestFormat)).ToArray();
6253Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
6629Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
6861Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
8134Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
9338Assert.Equal("S<nint> I.F1()", type.GetMember("F1").ToDisplayString(TestFormat));
9339Assert.Equal("S<nint> I.F2()", type.GetMember("F2").ToDisplayString(TestFormat));
9340Assert.Equal("S<nint> I.F3()", type.GetMember("F3").ToDisplayString(TestFormat));
9341Assert.Equal("S<nint> I.F4()", type.GetMember("F4").ToDisplayString(TestFormat));
9344Assert.Equal("S<nint> C.I.F1()", type.GetMember("I.F1").ToDisplayString(TestFormat));
9345Assert.Equal("S<nint> C.I.F2()", type.GetMember("I.F2").ToDisplayString(TestFormat));
9346Assert.Equal("S<nint> C.I.F3()", type.GetMember("I.F3").ToDisplayString(TestFormat));
9347Assert.Equal("S<nint> C.I.F4()", type.GetMember("I.F4").ToDisplayString(TestFormat));
9372Assert.Equal("nint[] A.F1()", type.GetMember("F1").ToDisplayString(TestFormat));
9373Assert.Equal("nint[] A.F2()", type.GetMember("F2").ToDisplayString(TestFormat));
9374Assert.Equal("nint[] A.F3()", type.GetMember("F3").ToDisplayString(TestFormat));
9375Assert.Equal("nint[] A.F4()", type.GetMember("F4").ToDisplayString(TestFormat));
9378Assert.Equal("nint[] B.F1()", type.GetMember("F1").ToDisplayString(TestFormat));
9379Assert.Equal("nint[] B.F2()", type.GetMember("F2").ToDisplayString(TestFormat));
9380Assert.Equal("nint[] B.F3()", type.GetMember("F3").ToDisplayString(TestFormat));
9381Assert.Equal("nint[] B.F4()", type.GetMember("F4").ToDisplayString(TestFormat));
10386Assert.Equal("nint", type.ToDisplayString(TestFormat));
10387Assert.Equal("nint", type.ToDisplayString(TestFormat));
10388Assert.Equal("System.IntPtr", type.ToDisplayString(TestFormat.WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.UseNativeIntegerUnderlyingType)));
10389Assert.Equal("nint", type.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
10395Assert.Equal("nuint", type.ToDisplayString(TestFormat));
10396Assert.Equal("nuint", type.ToDisplayString(TestFormat));
10397Assert.Equal("System.UIntPtr", type.ToDisplayString(TestFormat.WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.UseNativeIntegerUnderlyingType)));
10398Assert.Equal("nuint", type.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
10554Assert.Equal("nint nint.op_Implicit(System.String s)", model.GetConversion(returnStatements[0].Expression).Method.ToDisplayString(TestFormat));
10555Assert.Equal("nuint nuint.op_Implicit(System.String s)", model.GetConversion(returnStatements[1].Expression).Method.ToDisplayString(TestFormat));
10737Assert.Equal("nint C.M()", m.ToDisplayString(TestFormat));
10936Assert.Equal("nint", derivedNint.ToDisplayString(TestFormat));
10971Assert.Equal("System.IntPtr", baseNint.ToDisplayString(TestFormat));
10972Assert.Equal("nint", derivedNint.ToDisplayString(TestFormat));
11305Assert.Equal("nint nint.Zero", symbol.ToDisplayString(TestFormat));