Exemplo n.º 1
0
        public void ConstructStr()
        {
            string            data   = "02030405";
            CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);

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

            Assert.IsNotNull(csData);
            Assert.AreEqual("02030405", csData.ToString());
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
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);
        }
Exemplo n.º 7
0
 public void ConstructStr()
 {
     string data = "02030405";
     CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);
     Assert.IsNotNull(csData);
     Assert.AreEqual("02030405", csData.ToString());
 }
Exemplo n.º 8
0
 public void Construct()
 {
     byte[] data = { 2, 3, 4, 5 };
     CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);
     Assert.IsNotNull(csData);
     Assert.AreEqual("02030405", csData.ToString());
 }