Example #1
0
        public void ConstructStr()
        {
            string          data   = "000102030405060708090a0b0c0d0e0f";
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);

            Assert.IsNotNull(csData);
            Assert.AreEqual("000102030405060708090a0b0c0d0e0f", csData.ToString());
        }
Example #2
0
        public void Construct()
        {
            byte[]          data   = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);

            Assert.IsNotNull(csData);
            Assert.AreEqual("000102030405060708090a0b0c0d0e0f", csData.ToString());
        }
Example #3
0
        public void ClearingForBytes()
        {
            byte[]          data   = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);

            Assert.IsNotNull(csData);

            csData.Clear();
            byte[] byData = csData.GetAsByteArray();
            Assert.IsNull(byData);
        }
Example #4
0
        public void GetStringFromBytes()
        {
            byte[]          data   = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);

            Assert.IsNotNull(csData);

            string strData = csData.ToString();

            Assert.IsNotNull(strData);
            Assert.AreEqual("000102030405060708090a0b0c0d0e0f", strData);
        }
Example #5
0
        public void GetStringFromString()
        {
            string          data   = "000102030405060708090a0b0c0d0e0f";
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);

            Assert.IsNotNull(csData);

            string strData = csData.ToString();

            Assert.IsNotNull(strData);
            Assert.AreEqual("000102030405060708090a0b0c0d0e0f", strData);
        }
Example #6
0
        public void GetBytesFromBytes()
        {
            byte[]          data   = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);

            Assert.IsNotNull(csData);

            byte[] byData = csData.GetAsByteArray();
            Assert.IsNotNull(byData);
            Assert.AreEqual(byData.Length, CheckSumDataMD5.Length);
            Assert.AreEqual(data, byData);
        }
Example #7
0
        public void GetBytesFromString()
        {
            string          data   = "000102030405060708090a0b0c0d0e0f";
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);

            Assert.IsNotNull(csData);

            byte[] byData = csData.GetAsByteArray();
            byte[] veData = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            Assert.IsNotNull(byData);
            Assert.AreEqual(byData.Length, CheckSumDataMD5.Length);
            Assert.AreEqual(veData, byData);
        }
Example #8
0
        public void ClearingForString()
        {
            byte[]          data   = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);

            Assert.IsNotNull(csData);

            csData.Clear();
            string strData = csData.GetAsString();

            Assert.IsNotNull(strData);
            Assert.AreEqual(String.Empty, strData);
        }
Example #9
0
 public void ConstructSmallStr2()
 {
     string          data   = "000102030405060708090a0b0c0d0e";
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #10
0
 public void ConstructEmptyStr()
 {
     string          data   = String.Empty;
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #11
0
 public void ConstructSmallStr()
 {
     string          data   = "01020304";
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #12
0
 public void ConstructSmall2()
 {
     byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 };
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #13
0
 public void ConstructNullStr()
 {
     string          data   = null;
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #14
0
 public void ConstructLarge()
 {
     byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #15
0
 public void ConstructEmpty()
 {
     byte[] data = new byte[0];
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #16
0
 public void ConstructNullStr()
 {
     string data = null;
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #17
0
 public void ConstructNull()
 {
     byte[]          data   = null;
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #18
0
        public void GetBytesFromBytes()
        {
            byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);
            Assert.IsNotNull(csData);

            byte[] byData = csData.GetAsByteArray();
            Assert.IsNotNull(byData);
            Assert.AreEqual(byData.Length, CheckSumDataMD5.Length);
            Assert.AreEqual(data, byData);
        }
Example #19
0
        public void GetBytesFromString()
        {
            string data = "000102030405060708090a0b0c0d0e0f";
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);
            Assert.IsNotNull(csData);

            byte[] byData = csData.GetAsByteArray();
            byte[] veData = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            Assert.IsNotNull(byData);
            Assert.AreEqual(byData.Length, CheckSumDataMD5.Length);
            Assert.AreEqual(veData, byData);
        }
Example #20
0
 public void ConstructStr()
 {
     string data = "000102030405060708090a0b0c0d0e0f";
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
     Assert.IsNotNull(csData);
     Assert.AreEqual("000102030405060708090a0b0c0d0e0f", csData.ToString());
 }
Example #21
0
 public void ConstructSmallStr2()
 {
     string data = "000102030405060708090a0b0c0d0e";
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #22
0
 public void ConstructSmallStr()
 {
     string data = "01020304";
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #23
0
 public void ConstructLargeStr()
 {
     string          data   = "000102030405060708090a0b0c0d0e0f10";
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #24
0
 public void ConstructSmall()
 {
     byte[]          data   = { 2, 3, 4, 5 };
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #25
0
 public void ConstructLargeStr()
 {
     string data = "000102030405060708090a0b0c0d0e0f10";
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #26
0
 public void Construct()
 {
     byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
     Assert.IsNotNull(csData);
     Assert.AreEqual("000102030405060708090a0b0c0d0e0f", csData.ToString());
 }
Example #27
0
 public void ConstructEmptyStr()
 {
     string data = String.Empty;
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #28
0
 public void ConstructNull()
 {
     byte[] data = null;
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #29
0
        public void GetStringFromBytes()
        {
            byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);
            Assert.IsNotNull(csData);

            string strData = csData.ToString();
            Assert.IsNotNull(strData);
            Assert.AreEqual("000102030405060708090a0b0c0d0e0f", strData);
        }
Example #30
0
 public void ConstructSmall()
 {
     byte[] data = { 2, 3, 4, 5 };
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #31
0
        public void GetStringFromString()
        {
            string data = "000102030405060708090a0b0c0d0e0f";
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);
            Assert.IsNotNull(csData);

            string strData = csData.ToString();
            Assert.IsNotNull(strData);
            Assert.AreEqual("000102030405060708090a0b0c0d0e0f", strData);
        }
Example #32
0
        public void ClearingForBytes()
        {
            byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);
            Assert.IsNotNull(csData);

            csData.Clear();
            byte[] byData = csData.GetAsByteArray();
            Assert.IsNull(byData);
        }
Example #33
0
 public void ConstructEmpty()
 {
     byte[]          data   = new byte[0];
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #34
0
 public void ConstructLarge()
 {
     byte[]          data   = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #35
0
 public void ConstructSmall2()
 {
     byte[]          data   = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 };
     CheckSumDataMD5 csData = new CheckSumDataMD5(data);
 }
Example #36
0
        public void ClearingForString()
        {
            byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            CheckSumDataMD5 csData = new CheckSumDataMD5(data);
            Assert.IsNotNull(csData);

            csData.Clear();
            string strData = csData.GetAsString();
            Assert.IsNotNull(strData);
            Assert.AreEqual(String.Empty, strData);
        }