39 references to CheckLiteralToString
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (39)
Syntax\SyntaxFactoryTests.cs (39)
284CheckLiteralToString("A", @"""A""");
285CheckLiteralToString("\r", @"""\r""");
286CheckLiteralToString("\u0007", @"""\a""");
287CheckLiteralToString("\u000c", @"""\f""");
288CheckLiteralToString("\u001f", @"""\u001f""");
291CheckLiteralToString('A', @"'A'");
292CheckLiteralToString('\r', @"'\r'");
293CheckLiteralToString('\u0007', @"'\a'");
294CheckLiteralToString('\u000c', @"'\f'");
295CheckLiteralToString('\u001f', @"'\u001f'");
298CheckLiteralToString(byte.MinValue, @"0");
299CheckLiteralToString(byte.MaxValue, @"255");
302CheckLiteralToString((sbyte)0, @"0");
303CheckLiteralToString(sbyte.MinValue, @"-128");
304CheckLiteralToString(sbyte.MaxValue, @"127");
307CheckLiteralToString(ushort.MinValue, @"0");
308CheckLiteralToString(ushort.MaxValue, @"65535");
311CheckLiteralToString((short)0, @"0");
312CheckLiteralToString(short.MinValue, @"-32768");
313CheckLiteralToString(short.MaxValue, @"32767");
316CheckLiteralToString(uint.MinValue, @"0U");
317CheckLiteralToString(uint.MaxValue, @"4294967295U");
320CheckLiteralToString((int)0, @"0");
321CheckLiteralToString(int.MinValue, @"-2147483648");
322CheckLiteralToString(int.MaxValue, @"2147483647");
325CheckLiteralToString(ulong.MinValue, @"0UL");
326CheckLiteralToString(ulong.MaxValue, @"18446744073709551615UL");
329CheckLiteralToString((long)0, @"0L");
330CheckLiteralToString(long.MinValue, @"-9223372036854775808L");
331CheckLiteralToString(long.MaxValue, @"9223372036854775807L");
334CheckLiteralToString(0F, @"0F");
335CheckLiteralToString(0.012345F, @"0.012345F");
339CheckLiteralToString(float.MaxValue, @"3.4028235E+38F");
343CheckLiteralToString(0D, @"0");
344CheckLiteralToString(0.012345D, @"0.012345");
345CheckLiteralToString(double.MaxValue, @"1.7976931348623157E+308");
348CheckLiteralToString(0M, @"0M");
349CheckLiteralToString(0.012345M, @"0.012345M");
350CheckLiteralToString(decimal.MaxValue, @"79228162514264337593543950335M");