Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            CmdFileManage ci = new CmdFileManage();

            addrc             = ci.GetEraseAllCmd();
            richTextBox1.Text = DataChange.byteToHexStr(addrc);
        }
Esempio n. 2
0
        public void GetEraseAllCmdTest()
        {
            CmdFileManage cf = new CmdFileManage();

            byte[] ret = cf.GetEraseAllCmd();
            Assert.AreEqual(ret.Count(), 5);
            Assert.AreEqual(ret[4], 0xD7);
        }