Exemplo n.º 1
0
        public void TestAliasTC()
        {
            string       name       = "OrbServices_TestAlias";
            string       aliasRepId = "IDL:Ch/Elca/Iiop/Tests/" + name + ":1.0";
            TypeCodeImpl aliasedTC  = (TypeCodeImpl)m_orb.create_long_tc();

            omg.org.CORBA.TypeCode alias_TC =
                m_orb.create_alias_tc(aliasRepId, name, aliasedTC);
            Assert.AreEqual(aliasRepId, alias_TC.id(), "alias id");
            Assert.AreEqual(TCKind.tk_alias, alias_TC.kind(), "alias kind");
            Assert.AreEqual(aliasedTC.GetClsForTypeCode(),
                            ((TypeCodeImpl)alias_TC).GetClsForTypeCode(), "alias cls type");
        }