public void ReadShouldErrorOnBadIndex() { var buf = new byte[7]; Assert.Throws <ArgumentOutOfRangeException>(() => _defaultTestPacket.Read(buf, -1, 5)); }