public void TextTest(byte[] rawData, int bitCount) { var reader = new NetBitReader(rawData, bitCount); var playerName = new FText(); playerName.Serialize(reader); Assert.True(reader.AtEnd()); Assert.False(reader.IsError); }