Example #1
0
        public void InterfaceThroughWireTest()
        {
            ObjectIntrospectedImpl impl = new ObjectIntrospectedImpl ();
            ObjectPath path = new ObjectPath ("/org/dbussharp/test");
            Bus.Session.Register (path, impl);

            const string ServiceName = "org.dbussharp.testservice";
            Bus.Session.RequestName (ServiceName);
            var iface = Bus.Session.GetObject<org.freedesktop.DBus.Introspectable> ("org.dbussharp.testservice", path);

            Assert.IsTrue (XNode.DeepEquals (XDocument.Parse (expectedOutputSimpleInterface),
                                             XDocument.Parse (iface.Introspect ())));
        }
Example #2
0
        public void InterfaceThroughWireTest()
        {
            ObjectIntrospectedImpl impl = new ObjectIntrospectedImpl();
            ObjectPath             path = new ObjectPath("/org/dbussharp/test");

            Bus.Session.Register(path, impl);

            const string ServiceName = "org.dbussharp.testservice";

            Bus.Session.RequestName(ServiceName);
            var iface = Bus.Session.GetObject <org.freedesktop.DBus.Introspectable> ("org.dbussharp.testservice", path);

            Assert.IsTrue(XNode.DeepEquals(XDocument.Parse(expectedOutputSimpleInterface),
                                           XDocument.Parse(iface.Introspect())));
        }