19 references to s_formatter
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (19)
PrintOptionsTests.cs (19)
21Assert.Throws<ArgumentNullException>(() => s_formatter.FormatObject("hello", options: null));
66Assert.Equal("PrintOptions", s_formatter.FormatObject(options, options));
69Assert.Equal("PrintOptions { Ellipsis=\"...\", EscapeNonPrintableCharacters=true, MaximumOutputLength=1024, MemberDisplayFormat=SingleLine, NumberRadix=10 }", s_formatter.FormatObject(options, options));
82", s_formatter.FormatObject(options, options));
91Assert.Equal(@"""\t""", s_formatter.FormatObject("\t", options));
92Assert.Equal(@"'\t'", s_formatter.FormatObject('\t', options));
95Assert.Equal("\"\t\"", s_formatter.FormatObject("\t", options));
96Assert.Equal("'\t'", s_formatter.FormatObject('\t', options));
105Assert.Equal("1...", s_formatter.FormatObject(123456, options));
108Assert.Equal("12...", s_formatter.FormatObject(123456, options));
111Assert.Equal("123...", s_formatter.FormatObject(123456, options));
114Assert.Equal("1234...", s_formatter.FormatObject(123456, options));
117Assert.Equal("12345...", s_formatter.FormatObject(123456, options));
120Assert.Equal("123456", s_formatter.FormatObject(123456, options));
123Assert.Equal("123456", s_formatter.FormatObject(123456, options));
133Assert.Equal("1.", s_formatter.FormatObject(123456, options));
136Assert.Equal("1..", s_formatter.FormatObject(123456, options));
139Assert.Equal("1", s_formatter.FormatObject(123456, options));
142Assert.Equal("1", s_formatter.FormatObject(123456, options));