public void BrickUpdater_Factory_Test_012() { var Command = new Command_30_02(); var Updater = BrickUpdater.Factory(Command); Assert.IsTrue(Updater is BrickUpdater_30_02); }
public void Command_30_02_Test() { var Command = new Command_30_02(); Assert.AreEqual("GetColorSensor", Command.Name); Assert.AreEqual(0x30, Command.Cmd); Assert.AreEqual(0x02, Command.SubCmd); Assert.AreEqual(0x00, Command.CmdLen); Assert.AreEqual(0x30, Command.CmdData[0]); Assert.AreEqual(0x02, Command.CmdData[1]); Assert.AreEqual(0x00, Command.CmdData[2]); Assert.AreEqual(0x02, Command.OneDataLen); Assert.AreEqual(0x31, Command.Res); Assert.AreEqual(0x02, Command.SubRes); Assert.AreEqual(0xFF, Command.ResLen); }