Example #1
0
        public void ConstructStr()
        {
            string            data   = "02030405";
            CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);

            Assert.IsNotNull(csData);
            Assert.AreEqual("02030405", csData.ToString());
        }
Example #2
0
        public void Construct()
        {
            byte[]            data   = { 2, 3, 4, 5 };
            CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);

            Assert.IsNotNull(csData);
            Assert.AreEqual("02030405", csData.ToString());
        }
Example #3
0
        public void GetStringFromString()
        {
            string            data   = "02030405";
            CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);

            Assert.IsNotNull(csData);

            string strData = csData.ToString();

            Assert.IsNotNull(strData);
            Assert.AreEqual("02030405", strData);
        }
Example #4
0
        public void GetStringFromBytes()
        {
            byte[]            data   = { 2, 3, 4, 5 };
            CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);

            Assert.IsNotNull(csData);

            string strData = csData.ToString();

            Assert.IsNotNull(strData);
            Assert.AreEqual("02030405", strData);
        }
        public void GetStringFromString()
        {
            string data = "02030405";
            CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);
            Assert.IsNotNull(csData);

            string strData = csData.ToString();
            Assert.IsNotNull(strData);
            Assert.AreEqual("02030405", strData);
        }
        public void GetStringFromBytes()
        {
            byte[] data = { 2, 3, 4, 5 };
            CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);
            Assert.IsNotNull(csData);

            string strData = csData.ToString();
            Assert.IsNotNull(strData);
            Assert.AreEqual("02030405", strData);
        }
 public void ConstructStr()
 {
     string data = "02030405";
     CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);
     Assert.IsNotNull(csData);
     Assert.AreEqual("02030405", csData.ToString());
 }
 public void Construct()
 {
     byte[] data = { 2, 3, 4, 5 };
     CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);
     Assert.IsNotNull(csData);
     Assert.AreEqual("02030405", csData.ToString());
 }