28 references to FormatPrimitiveUsingHexadecimalNumbers
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (28)
SymbolDisplay\ObjectDisplayTests.cs (28)
49Assert.Equal("0x01", FormatPrimitiveUsingHexadecimalNumbers((byte)1));
50Assert.Equal(@"0x7f", FormatPrimitiveUsingHexadecimalNumbers((byte)0x7f));
51Assert.Equal("0xff", FormatPrimitiveUsingHexadecimalNumbers((byte)-1));
52Assert.Equal("0x01", FormatPrimitiveUsingHexadecimalNumbers((sbyte)1));
53Assert.Equal(@"0x7f", FormatPrimitiveUsingHexadecimalNumbers((sbyte)0x7f));
54Assert.Equal("0xffffffff", FormatPrimitiveUsingHexadecimalNumbers((sbyte)-1)); // As in dev11.
55Assert.Equal(@"0xfffffffe", FormatPrimitiveUsingHexadecimalNumbers((sbyte)(-2)));
56Assert.Equal("0x0001", FormatPrimitiveUsingHexadecimalNumbers((ushort)1));
57Assert.Equal(@"0x007f", FormatPrimitiveUsingHexadecimalNumbers((ushort)0x7f));
58Assert.Equal("0xffff", FormatPrimitiveUsingHexadecimalNumbers((ushort)-1));
59Assert.Equal("0x0001", FormatPrimitiveUsingHexadecimalNumbers((short)1));
60Assert.Equal(@"0x007f", FormatPrimitiveUsingHexadecimalNumbers((short)0x7f));
61Assert.Equal("0xffffffff", FormatPrimitiveUsingHexadecimalNumbers((short)-1)); // As in dev11.
62Assert.Equal(@"0xfffffffe", FormatPrimitiveUsingHexadecimalNumbers((short)(-2)));
63Assert.Equal("0x00000001", FormatPrimitiveUsingHexadecimalNumbers((uint)1));
64Assert.Equal(@"0x0000007f", FormatPrimitiveUsingHexadecimalNumbers((uint)0x7f));
65Assert.Equal("0xffffffff", FormatPrimitiveUsingHexadecimalNumbers((uint)-1));
66Assert.Equal("0x00000001", FormatPrimitiveUsingHexadecimalNumbers((int)1));
67Assert.Equal(@"0x0000007f", FormatPrimitiveUsingHexadecimalNumbers((int)0x7f));
68Assert.Equal("0xffffffff", FormatPrimitiveUsingHexadecimalNumbers((int)-1));
69Assert.Equal(@"0xfffffffe", FormatPrimitiveUsingHexadecimalNumbers((int)(-2)));
70Assert.Equal("0x0000000000000001", FormatPrimitiveUsingHexadecimalNumbers((ulong)1));
71Assert.Equal(@"0x000000000000007f", FormatPrimitiveUsingHexadecimalNumbers((ulong)0x7f));
72Assert.Equal("0xffffffffffffffff", FormatPrimitiveUsingHexadecimalNumbers((ulong)-1));
73Assert.Equal("0x0000000000000001", FormatPrimitiveUsingHexadecimalNumbers((long)1));
74Assert.Equal(@"0x000000000000007f", FormatPrimitiveUsingHexadecimalNumbers((long)0x7f));
75Assert.Equal("0xffffffffffffffff", FormatPrimitiveUsingHexadecimalNumbers((long)-1));
76Assert.Equal(@"0xfffffffffffffffe", FormatPrimitiveUsingHexadecimalNumbers((long)(-2)));