public void CanReadByteLineOnMixedAsciiAndUTF8Text()
{
var reader = new RebufferableBinaryReader(TestUtil.StringToStreamNoBom("Bonjour poignée"), Encoding.UTF8);
byte[] bytes = reader.ReadByteLine();
var expected = new byte[] {66, 111, 110, 106, 111, 117, 114, 32, 112, 111, 105, 103, 110, 195, 169, 101};
foreach (var pair in expected.Zip(bytes, Tuple.Create))
{
Assert.AreEqual(pair.Item1, pair.Item2);
}
}