Buffering\TextChunkTest.cs (9)
17await chunk.WriteToAsync(_writer, string.Empty, ref _tempBuffer);
18Assert.Equal("string value", _writer.ToString());
25await chunk.WriteToAsync(_writer, string.Empty, ref _tempBuffer);
26Assert.Equal("x", _writer.ToString());
39await chunk.WriteToAsync(_writer, charArrayScope.ToString(), ref _tempBuffer);
40Assert.Equal("bcd", _writer.ToString());
46await new TextChunk(123).WriteToAsync(_writer, string.Empty, ref _tempBuffer);
47await new TextChunk(456).WriteToAsync(_writer, string.Empty, ref _tempBuffer);
48Assert.Equal("123456", _writer.ToString());