Exemplo n.º 1
0
        public void TestIsAServiceWithServerSideIf()
        {
            // most specific interface of the remote object is known on
            // the server side only
            Assert.IsTrue(
                m_orb.is_a(m_testServiceInternalIf,
                           "IDL:TestSimpleServicePublic:1.0"), "wrong public type info");

            Assert.IsTrue(
                m_orb.is_a(m_testServiceInternalIf,
                           "IDL:TestSimpleServicePublic:1.0"), "wrong server only type info");
        }
Exemplo n.º 2
0
        public void TestIsAForNonProxy()
        {
            IsALocalIfTestImpl impl = new IsALocalIfTestImpl();

            Assert.IsTrue(
                m_orb.is_a(impl, "IDL:Ch/Elca/Iiop/Tests/IsALocalIfTestInterface:1.0"), "is_a result for interface IsALocalIfTestInterface wrong");

            Assert.IsTrue(
                !m_orb.is_a(impl,
                            "IDL:Ch/Elca/Iiop/Tests/IsARemoteIfTestInterfaceNotImpl:1.0"), "is_a check for incompatible type");
        }