public void getConnectionsTest2()
        {
            IReceptaclesServant target = new IReceptaclesServant(context);
            string receptacle          = receptacleNames[0];

            ConnectionDescription[] connections = target.getConnections(receptacle);
            int actual = connections.Length;

            Assert.AreEqual(0, actual);
        }
        public void getConnectionsTest1()
        {
            IReceptaclesServant target = new IReceptaclesServant(context);

            string receptacle    = receptacleNames[0];
            int    numConections = 5;

            ConnectionDescription[] expected = new ConnectionDescription[numConections];

            for (int i = 0; i < numConections; i++)
            {
                int id = target.connect(receptacle, servant);
                expected[i] = new ConnectionDescription(id, servant);
            }
            ConnectionDescription[] actual = target.getConnections(receptacle);

            for (int i = 0; i < numConections; i++)
            {
                Assert.AreEqual(expected[i].id, actual[i].id);
                Assert.AreEqual(expected[i].objref, actual[i].objref);
            }
        }
        public void getConnectionsTest3()
        {
            IReceptaclesServant target = new IReceptaclesServant(context);

            target.getConnections("invalidName");
        }