public void getReceptaclesByNameTest() { IMetaInterfaceServant target = new IMetaInterfaceServant(context); foreach (var name in receptacleNames) { context.AddReceptacle(name, interfaceName, false); } string[] names = receptacleNames.ToArray(); ReceptacleDescription[] actual = target.getReceptaclesByName(names); Assert.AreEqual(receptacleNames.Count, actual.Length); foreach (var receptacle in actual) { Receptacle expected = context.GetReceptacleByName(receptacle.name); Assert.IsNotNull(expected); } }