12 references to FormatPrimitiveIncludingTypeSuffix
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
SymbolDisplay\ObjectDisplayTests.cs (12)
317Assert.Equal("true", FormatPrimitiveIncludingTypeSuffix(boolValue));
320Assert.Equal("42", FormatPrimitiveIncludingTypeSuffix(sbyteValue));
323Assert.Equal("42", FormatPrimitiveIncludingTypeSuffix(byteValue));
326Assert.Equal("42", FormatPrimitiveIncludingTypeSuffix(shortValue));
329Assert.Equal("42", FormatPrimitiveIncludingTypeSuffix(ushortValue));
332Assert.Equal("42", FormatPrimitiveIncludingTypeSuffix(intValue));
335Assert.Equal("42U", FormatPrimitiveIncludingTypeSuffix(uintValue));
338Assert.Equal("42L", FormatPrimitiveIncludingTypeSuffix(longValue));
341Assert.Equal("42UL", FormatPrimitiveIncludingTypeSuffix(ulongValue));
344Assert.Equal("3.14159F", FormatPrimitiveIncludingTypeSuffix(floatValue));
347Assert.Equal("26.2D", FormatPrimitiveIncludingTypeSuffix(doubleValue));
350Assert.Equal("12.5M", FormatPrimitiveIncludingTypeSuffix(decimalValue, useHexadecimalNumbers: true));