Ejemplo n.º 1
0
        public void SendPacketsForGrid()
        {
            client.Connect();
            client.SendGridPackets();

            //Checks if the correct number of packets were sent
            int expected = UDPClient.GRID_SIZE * UDPClient.GRID_SIZE;
            int actual   = client.test_GridCount;

            Assert.AreEqual(expected, actual);

            client.Disconnect();
        }