30 references to FormatPrimitive
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (30)
SymbolDisplay\ObjectDisplayTests.cs (30)
24Assert.Equal("1", FormatPrimitive((byte)1));
25Assert.Equal(@"123", FormatPrimitive((byte)123));
26Assert.Equal("255", FormatPrimitive((byte)-1));
27Assert.Equal("1", FormatPrimitive((sbyte)1));
28Assert.Equal(@"123", FormatPrimitive((sbyte)123));
29Assert.Equal("-1", FormatPrimitive((sbyte)-1));
30Assert.Equal("1", FormatPrimitive((ushort)1));
31Assert.Equal(@"123", FormatPrimitive((ushort)123));
32Assert.Equal("65535", FormatPrimitive((ushort)-1));
33Assert.Equal("1", FormatPrimitive((short)1));
34Assert.Equal(@"123", FormatPrimitive((short)123));
35Assert.Equal("-1", FormatPrimitive((short)-1));
36Assert.Equal("1", FormatPrimitive((uint)1));
37Assert.Equal(@"123", FormatPrimitive((uint)123));
38Assert.Equal("4294967295", FormatPrimitive((uint)-1));
39Assert.Equal("1", FormatPrimitive((int)1));
40Assert.Equal(@"123", FormatPrimitive((int)123));
41Assert.Equal("-1", FormatPrimitive((int)-1));
42Assert.Equal("1", FormatPrimitive((ulong)1));
43Assert.Equal(@"123", FormatPrimitive((ulong)123));
44Assert.Equal("18446744073709551615", FormatPrimitive((ulong)-1));
45Assert.Equal("1", FormatPrimitive((long)1));
46Assert.Equal(@"123", FormatPrimitive((long)123));
47Assert.Equal("-1", FormatPrimitive((long)-1));
83Assert.Equal(@"true", FormatPrimitive(true));
84Assert.Equal(@"false", FormatPrimitive(false));
90Assert.Equal(@"null", FormatPrimitive(null));
96Assert.Equal(@"2", FormatPrimitive((decimal)2));
102Assert.Equal(@"2", FormatPrimitive((float)2));
108Assert.Equal(@"2", FormatPrimitive((double)2));