コード例 #1
0
        public void TestConvertXLinkConnectorViewTypesFromDiffrentDlls()
        {
            // Convert between OOSourceCodeDomain.XLinkConnectorView and OpenEngSBCore.XLinkConnectorView
            OOSourceCodeDomain.XLinkConnectorView oosxlink = new OOSourceCodeDomain.XLinkConnectorView();
            oosxlink.name   = "TestCase";
            oosxlink.viewId = "TestViewId";
            OpenEngSBCore.XLinkConnectorView openEngSBCOre = oosxlink.ConvertOSBType <OpenEngSBCore.XLinkConnectorView>();

            Assert.AreEqual <String>(oosxlink.name, openEngSBCOre.name);
            Assert.AreEqual <String>(oosxlink.viewId, openEngSBCOre.viewId);
        }
コード例 #2
0
        public void TestConvertXLinkConnectorViewTypesFromDiffrentDllsAndAllValuesSet()
        {
            OOSourceCodeDomain.XLinkConnectorView oosxlink = new OOSourceCodeDomain.XLinkConnectorView();
            oosxlink.name   = "TestCase";
            oosxlink.viewId = "TestViewId";
            OOSourceCodeDomain.string2stringMapEntry[] entry = new OOSourceCodeDomain.string2stringMapEntry[1];
            entry[0]              = new OOSourceCodeDomain.string2stringMapEntry();
            entry[0].key          = "key";
            entry[0].value        = "value";
            oosxlink.descriptions = entry;
            OpenEngSBCore.XLinkConnectorView openEngSBCOre = oosxlink.ConvertOSBType <OpenEngSBCore.XLinkConnectorView>();

            Assert.AreEqual <String>(oosxlink.name, openEngSBCOre.name);
            Assert.AreEqual <String>(oosxlink.viewId, openEngSBCOre.viewId);
            Assert.AreEqual <String>(oosxlink.descriptions[0].key, entry[0].key);
            Assert.AreEqual <String>(oosxlink.descriptions[0].value, entry[0].value);
        }
コード例 #3
0
        public void TestConvertXLinkConnectorViewTypesFromDiffrentDllsAndAllValuesSet()
        {
            OOSourceCodeDomain.XLinkConnectorView oosxlink = new OOSourceCodeDomain.XLinkConnectorView();
            oosxlink.name = "TestCase";
            oosxlink.viewId = "TestViewId";
            OOSourceCodeDomain.string2stringMapEntry[] entry = new OOSourceCodeDomain.string2stringMapEntry[1];
            entry[0] = new OOSourceCodeDomain.string2stringMapEntry();
            entry[0].key = "key";
            entry[0].value = "value";
            oosxlink.descriptions = entry;
            OpenEngSBCore.XLinkConnectorView openEngSBCOre = oosxlink.ConvertOSBType<OpenEngSBCore.XLinkConnectorView>();

            Assert.AreEqual<String>(oosxlink.name, openEngSBCOre.name);
            Assert.AreEqual<String>(oosxlink.viewId, openEngSBCOre.viewId);
            Assert.AreEqual<String>(oosxlink.descriptions[0].key, entry[0].key);
            Assert.AreEqual<String>(oosxlink.descriptions[0].value, entry[0].value);
        }
コード例 #4
0
        public void TestConvertXLinkConnectorViewTypesFromDiffrentDlls()
        {
            // Convert between OOSourceCodeDomain.XLinkConnectorView and OpenEngSBCore.XLinkConnectorView
            OOSourceCodeDomain.XLinkConnectorView oosxlink = new OOSourceCodeDomain.XLinkConnectorView();
            oosxlink.name = "TestCase";
            oosxlink.viewId = "TestViewId";
            OpenEngSBCore.XLinkConnectorView openEngSBCOre = oosxlink.ConvertOSBType<OpenEngSBCore.XLinkConnectorView>();

            Assert.AreEqual<String>(oosxlink.name, openEngSBCOre.name);
            Assert.AreEqual<String>(oosxlink.viewId, openEngSBCOre.viewId);
        }