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)); 1927var actualOperators = nodes.Select(n => model.GetSymbolInfo(n).Symbol.ToDisplayString(TestFormat)).ToArray(); 1979var actualOperators = nodes.Select(n => model.GetSymbolInfo(n).Symbol.ToDisplayString(TestFormat)).ToArray(); 6256Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes))); 6632Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes))); 6864Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes))); 8137Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes))); 9341Assert.Equal("S<nint> I.F1()", type.GetMember("F1").ToDisplayString(TestFormat)); 9342Assert.Equal("S<nint> I.F2()", type.GetMember("F2").ToDisplayString(TestFormat)); 9343Assert.Equal("S<nint> I.F3()", type.GetMember("F3").ToDisplayString(TestFormat)); 9344Assert.Equal("S<nint> I.F4()", type.GetMember("F4").ToDisplayString(TestFormat)); 9347Assert.Equal("S<nint> C.I.F1()", type.GetMember("I.F1").ToDisplayString(TestFormat)); 9348Assert.Equal("S<nint> C.I.F2()", type.GetMember("I.F2").ToDisplayString(TestFormat)); 9349Assert.Equal("S<nint> C.I.F3()", type.GetMember("I.F3").ToDisplayString(TestFormat)); 9350Assert.Equal("S<nint> C.I.F4()", type.GetMember("I.F4").ToDisplayString(TestFormat)); 9375Assert.Equal("nint[] A.F1()", type.GetMember("F1").ToDisplayString(TestFormat)); 9376Assert.Equal("nint[] A.F2()", type.GetMember("F2").ToDisplayString(TestFormat)); 9377Assert.Equal("nint[] A.F3()", type.GetMember("F3").ToDisplayString(TestFormat)); 9378Assert.Equal("nint[] A.F4()", type.GetMember("F4").ToDisplayString(TestFormat)); 9381Assert.Equal("nint[] B.F1()", type.GetMember("F1").ToDisplayString(TestFormat)); 9382Assert.Equal("nint[] B.F2()", type.GetMember("F2").ToDisplayString(TestFormat)); 9383Assert.Equal("nint[] B.F3()", type.GetMember("F3").ToDisplayString(TestFormat)); 9384Assert.Equal("nint[] B.F4()", type.GetMember("F4").ToDisplayString(TestFormat)); 10389Assert.Equal("nint", type.ToDisplayString(TestFormat)); 10390Assert.Equal("nint", type.ToDisplayString(TestFormat)); 10391Assert.Equal("System.IntPtr", type.ToDisplayString(TestFormat.WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.UseNativeIntegerUnderlyingType))); 10392Assert.Equal("nint", type.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes))); 10398Assert.Equal("nuint", type.ToDisplayString(TestFormat)); 10399Assert.Equal("nuint", type.ToDisplayString(TestFormat)); 10400Assert.Equal("System.UIntPtr", type.ToDisplayString(TestFormat.WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.UseNativeIntegerUnderlyingType))); 10401Assert.Equal("nuint", type.ToDisplayString(TestFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes))); 10557Assert.Equal("nint nint.op_Implicit(System.String s)", model.GetConversion(returnStatements[0].Expression).Method.ToDisplayString(TestFormat)); 10558Assert.Equal("nuint nuint.op_Implicit(System.String s)", model.GetConversion(returnStatements[1].Expression).Method.ToDisplayString(TestFormat)); 10740Assert.Equal("nint C.M()", m.ToDisplayString(TestFormat)); 10939Assert.Equal("nint", derivedNint.ToDisplayString(TestFormat)); 10974Assert.Equal("System.IntPtr", baseNint.ToDisplayString(TestFormat)); 10975Assert.Equal("nint", derivedNint.ToDisplayString(TestFormat)); 11308Assert.Equal("nint nint.Zero", symbol.ToDisplayString(TestFormat));