public void TestEnquireLinkEncode() { var pdu = new EnquireLink(); pdu.sequence_number = 1; Assert.AreEqual(rawPdu, pdu.Encode(), "enquire_link should be properly encoded"); }
private void SendEnquireLink() { string pdu; var enquire_link = new EnquireLink(); enquire_link.sequence_number = sequence_number; commands_queue.Add(sequence_number, DateTime.Now); pdu = enquire_link.Encode(); Events.LogChannelEvent(channel_name, "Sending [enquire_link]", debug ? pdu : ""); SendPDU(pdu); }