public void BuildReadBoolTest( ) { OperateResult <byte[]> read = FatekProgram.BuildReadCommand(1, "X50", 6, true); Assert.IsTrue(read.IsSuccess); Assert.IsTrue(SoftBasic.IsTwoBytesEquel(read.Content, new byte[] { 0x02, 0x30, 0x31, 0x34, 0x34, 0x30, 0x36, 0x58, 0x30, 0x30, 0x35, 0x30, 0x34, 0x45, 0x03 })); }
public void BuildReadTest( ) { OperateResult <byte[]> read = FatekProgram.BuildReadCommand(1, "R12", 3, false); Assert.IsTrue(read.IsSuccess); Assert.IsTrue(SoftBasic.IsTwoBytesEquel(read.Content, new byte[] { 0x02, 0x30, 0x31, 0x34, 0x36, 0x30, 0x33, 0x52, 0x30, 0x30, 0x30, 0x31, 0x32, 0x37, 0x35, 0x03 })); }