public async Task DecodeAsync_Stream(Base16 encoder, byte[] expectedOutput, string input) { using var memoryStream = new MemoryStream(); using var reader = new StringReader(input); await encoder.DecodeAsync(reader, memoryStream); CollectionAssert.AreEqual(expectedOutput, memoryStream.ToArray()); }