public void SetUp() { var config = new Config(); maxSequence = (ushort)((1 << config.SequenceSize) - 1); connection = new SubIRawConnection(); ackSystem = new AckSystem(connection, config, new Time(), bufferPool); message = createRandomData(1); ackSystem.SendNotify(message); // should have got 1 packet Assert.That(connection.packets.Count, Is.EqualTo(1)); packet = connection.packets[0]; // should have sent data Assert.That(packet, Is.Not.Null); }
public static INotifyToken SendNotify(this AckSystem ackSystem, byte[] array) { return(ackSystem.SendNotify(array, 0, array.Length)); }