public void TestModeCmdStr1() { AdcpCommands cmd = new AdcpCommands(); cmd.Mode = AdcpCommands.AdcpMode.DVL; Assert.AreEqual(AdcpCommands.AdcpMode.DVL, cmd.Mode, "Mode is incorrect."); Assert.AreEqual("CDVL", cmd.Mode_ToString(), "Mode String is incorrect."); Assert.AreEqual(AdcpCommands.CMD_CDVL, cmd.Mode_ToString(), "Mode String is incorrect."); Assert.AreEqual(AdcpCommands.CMD_CDVL, cmd.Mode_CmdStr(), "Mode Command String is incorrect."); }
public void TestMode() { AdcpCommands cmd = new AdcpCommands(); cmd.Mode = AdcpCommands.AdcpMode.PROFILE; Assert.AreEqual(AdcpCommands.AdcpMode.PROFILE, cmd.Mode, "Mode is incorrect."); Assert.AreEqual("CPROFILE", cmd.Mode_ToString(), "Mode String is incorrect."); Assert.AreEqual(AdcpCommands.CMD_CPROFILE, cmd.Mode_ToString(), "Mode String is incorrect."); }