Exemple #1
0
        public void CitpFinfSendFramesTest()
        {
            FInfSendFrames sentPacket = new FInfSendFrames();

            sentPacket.FixtureIdentifiers.Add(201);
            sentPacket.FixtureIdentifiers.Add(6002);

            FInfSendFrames receivedPacket = CitpPacketTester.SendAndReceivePacket(sentPacket) as FInfSendFrames;

            Assert.IsTrue(sentPacket.FixtureIdentifiers.SequenceEqual(receivedPacket.FixtureIdentifiers));
        }
Exemple #2
0
        public void CitpFinfFramesTest()
        {
            FInfFrames sentPacket = new FInfFrames();

            sentPacket.FixtureIdentifier = 201;
            sentPacket.FrameFilters.Add("Open");
            sentPacket.FrameFilters.Add("Cyan");
            sentPacket.FrameGobos.Add("Stars");
            sentPacket.FrameGobos.Add("Breakup");


            FInfFrames receivedPacket = CitpPacketTester.SendAndReceivePacket(sentPacket) as FInfFrames;

            Assert.AreEqual(sentPacket.FixtureIdentifier, receivedPacket.FixtureIdentifier, "Fixture identifiers are not equal.");
            Assert.IsTrue(sentPacket.FrameFilters.SequenceEqual(receivedPacket.FrameFilters), "Different filters.");
            Assert.IsTrue(sentPacket.FrameGobos.SequenceEqual(receivedPacket.FrameGobos), "Different Gobos.");
        }