Example #1
0
        public void TestSequenceTC()
        {
            TypeCodeImpl seqMemberType = (TypeCodeImpl)m_orb.create_octet_tc();

            omg.org.CORBA.TypeCode seqOfOctet_TC =
                m_orb.create_sequence_tc(0, seqMemberType);
            Assert.AreEqual(TCKind.tk_sequence, seqOfOctet_TC.kind(), "sequence kind");
            Assert.AreEqual(seqMemberType.GetClsForTypeCode(),
                            ((TypeCodeImpl)seqOfOctet_TC.content_type()).GetClsForTypeCode(), "sequence member type");
        }
Example #2
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");
        }