public void Should_Get_Correct_Value(string hex, long expected) { var packet = PacketDecoder.DecodeString(hex); // Shouldn't really be doing it like this but oh well.. var result = packet.GetValue(); Assert.Equal(expected, result); }
public void Should_Parse_Correct_Version_Sum(string hex, int expected) { var packet = PacketDecoder.DecodeString(hex); var result = packet.GetVersionSum(); Assert.Equal(expected, result); }