public void TransmissionRandomNCycleTest() { for (int i = 0; i < cycleTestCount; i++) { TransmissionTest(PacketGenerator.randomPacket()); } }
public void ResetAndStatusTest() { IMilSpiBridge bridge = new MilSpiBridge(mpsseDeviceSerialNum); List <IMilFrame> tdata = PacketGenerator.randomPacket(1); bridge.Transmit(transmitterAddr, tdata); Thread.Sleep(500); ISPStatus status = bridge.getDeviceStatus(receiverAddr); Assert.IsTrue(status.ReceivedQueueSize == 1); bridge.DeviceReset(transmitterAddr); Thread.Sleep(200); status = bridge.getDeviceStatus(receiverAddr); Assert.IsTrue(status.ReceivedQueueSize == 0); }
public void TransmissionRandomNTest() { TransmissionTest(PacketGenerator.randomPacket()); }