Beispiel #1
0
        public void CitpPInfPeerNameTest()
        {
            CitpPInfPeerName sentPacket = new CitpPInfPeerName();

            sentPacket.Name = "Zaphod";

            CitpPInfPeerName receivedPacket = CitpPacketTester.SendAndReceivePeerInformationPacket(sentPacket) as CitpPInfPeerName;

            Assert.AreEqual(sentPacket.Name, receivedPacket.Name);
        }
Beispiel #2
0
        public void CitpPInfPeerLocationTest()
        {
            CitpPInfPeerLocation sentPacket = new CitpPInfPeerLocation();

            sentPacket.ListeningTCPPort = 0;
            sentPacket.Type             = "LightingConsole";
            sentPacket.Name             = "Avolites Titan";
            sentPacket.State            = "Running";

            CitpPInfPeerLocation receivedPacket = CitpPacketTester.SendAndReceivePeerInformationPacket(sentPacket) as CitpPInfPeerLocation;

            Assert.AreEqual(sentPacket.ListeningTCPPort, receivedPacket.ListeningTCPPort);
            Assert.AreEqual(sentPacket.Name, receivedPacket.Name);
            Assert.AreEqual(sentPacket.State, receivedPacket.State);
        }