當前位置: 首頁>>代碼示例>>C#>>正文


C# AdcpSubsystemCommands.GetCommandList方法代碼示例

本文整理匯總了C#中AdcpSubsystemCommands.GetCommandList方法的典型用法代碼示例。如果您正苦於以下問題:C# AdcpSubsystemCommands.GetCommandList方法的具體用法?C# AdcpSubsystemCommands.GetCommandList怎麽用?C# AdcpSubsystemCommands.GetCommandList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在AdcpSubsystemCommands的用法示例。


在下文中一共展示了AdcpSubsystemCommands.GetCommandList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: TestCommandList

        public void TestCommandList()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            List<string> list = ssc.GetCommandList();

            string result = "";
            // Create a single string for the commandlist.
            for (int x = 0; x < list.Count; x++)
            {
                result += list[x];
            }

            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPON), "CMD_CWPON is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPBB), "CMD_CWPBB is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPST), "CMD_CWPST is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPBL), "CMD_CWPBL is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPBS), "CMD_CWPBS is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPX), "CMD_CWPX is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPBN), "CMD_CWPBN is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPP), "CMD_CWPP is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPBP), "CMD_CWPBP is missing.");
            // Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPAI), "CMD_CWPAI is missing.");        // Removed
            Assert.IsFalse(result.Contains(AdcpSubsystemCommands.CMD_CWPAI), "CMD_CWPAI is missing.");          // Removed
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPTBP), "CMD_CWPTBP is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPAP), "CMD_CWPAP is missing.");

            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBI), "CMD_CBI is missing.");

            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTON), "CMD_CBTON is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTBB), "CMD_CBTBB is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTST), "CMD_CBTST is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTT), "CMD_CBTT is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTBL), "CMD_CBTBL is missing.");
            //Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTMX), "CMD_CBTMX is missing.");         // Removed
            Assert.IsFalse(result.Contains(AdcpSubsystemCommands.CMD_CBTMX), "CMD_CBTMX is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTTBP), "CMD_CBTTBP is missing.");

            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWTON), "CMD_CWTON is missing.");
            //Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWTBB), "CMD_CWTBB is missing.");
            //Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWTBL), "CMD_CWTBL is missing.");
            //Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWTBS), "CMD_CWTBS is missing.");
            //Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWTTBP), "CMD_CWTTBP is missing.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:45,代碼來源:AdcpSubsystemCommandsTest.cs


注:本文中的AdcpSubsystemCommands.GetCommandList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。