public void ConvertsText() { string testString = "TestString019! "; var parser = new RawPacketParser(); string result = parser.InterpretPacket((new UTF8Encoding()).GetBytes(testString)); Assert.Equal(testString, result); }
public void ConvertsEmptyArray() { var parser = new RawPacketParser(); string result = parser.InterpretPacket(new byte[0]); Assert.Equal(string.Empty, result); }