示例#1
0
        public async Task EncodeAsync_StreamAsync(Base16 encoder, byte[] input, string expectedOutput)
        {
            using var inputStream = new MemoryStream(input);
            using var writer      = new StringWriter();
            await encoder.EncodeAsync(inputStream, writer);

            Assert.AreEqual(expectedOutput, writer.ToString());
        }