Example #1
0
        public static async Task MiscWritesAsync()
        {
            var sw = new ArrayPooledTextWriter();
            await sw.WriteAsync('H');

            await sw.WriteAsync(new char[] { 'e', 'l', 'l', 'o', ' ' });

            await sw.WriteAsync("World!");

            Assert.Equal("Hello World!", sw.ToString());
        }