public void TestOtherStreamStuff() { var mem = new byte[2]; var ms = new MemoryStreamer(mem); Assert.Throws <ArgumentOutOfRangeException>(() => ms.SetLength(mem.Length + 1)); ms.Flush(); }