public void Parse1() { byte[] packetData = TestPacket1; var p = new Ssm2WriteAddressRequest (); p.FromBytes (packetData); Assert.AreEqual (packetData.Length, p.Size, "Size"); Assert.AreEqual (true, p.Check (), "Check()"); Assert.AreEqual (Ssm2Device.Engine10, p.Destination, "Destination"); Assert.AreEqual (Ssm2Device.DiagnosticToolF0, p.Source, "Source"); Assert.AreEqual (Ssm2Command.WriteAddressRequestB8, p.Command, "Command"); Assert.AreEqual (0x6f, p.Address, "Address"); Assert.AreEqual (0x2, p.Data, "Data"); }
public void Parse1() { byte[] packetData = TestPacket1; var p = new Ssm2WriteAddressRequest(); p.FromBytes(packetData); Assert.AreEqual(packetData.Length, p.Size, "Size"); Assert.AreEqual(true, p.Check(), "Check()"); Assert.AreEqual(Ssm2Device.Engine10, p.Destination, "Destination"); Assert.AreEqual(Ssm2Device.DiagnosticToolF0, p.Source, "Source"); Assert.AreEqual(Ssm2Command.WriteAddressRequestB8, p.Command, "Command"); Assert.AreEqual(0x6f, p.Address, "Address"); Assert.AreEqual(0x2, p.Data, "Data"); }