Check() 공개 메소드

public Check ( ) : bool
리턴 bool
예제 #1
0
        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");
        }
예제 #2
0
        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");
        }