public void getFacetTest1() { IComponentServant target = new IComponentServant(context); Type facetType = typeof(IReceptacles); string facetName = typeof(IReceptacles).Name; string facetInterface = Repository.GetRepositoryID(facetType); Facet facet = context.GetFacetByName(facetName); MarshalByRefObject expected = facet.Reference; MarshalByRefObject actual = target.getFacet(facetInterface); Assert.AreEqual(expected, actual); }
public void getFacetTest2() { IComponentServant target = new IComponentServant(context); MarshalByRefObject actual = target.getFacet("IDL:invalid/interface:1.0"); }