Ejemplo n.º 1
0
        public void getFacetByNameTest3()
        {
            IComponentServant  target = new IComponentServant(context);
            MarshalByRefObject actual = target.getFacetByName("InvalidFacetName");

            Assert.IsNull(actual);
        }
Ejemplo n.º 2
0
        public void getFacetByNameTest1()
        {
            IComponentServant  target    = new IComponentServant(context);
            string             facetName = typeof(IReceptacles).Name;
            Facet              facet     = context.GetFacetByName(facetName);
            MarshalByRefObject expected  = facet.Reference;
            MarshalByRefObject actual    = target.getFacetByName(facetName);

            Assert.AreEqual(expected, actual);
        }