Ejemplo n.º 1
0
        public void ClearingForBytes()
        {
            byte[]           data   = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
            CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);

            Assert.IsNotNull(csData);

            csData.Clear();
            byte[] byData = csData.GetAsByteArray();
            Assert.IsNull(byData);
        }
Ejemplo n.º 2
0
        public void ClearingForString()
        {
            byte[]           data   = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
            CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);

            Assert.IsNotNull(csData);

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

            Assert.IsNotNull(strData);
            Assert.AreEqual(String.Empty, strData);
        }
Ejemplo n.º 3
0
        public void ClearingForBytes()
        {
            byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
            CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
            Assert.IsNotNull(csData);

            csData.Clear();
            byte[] byData = csData.GetAsByteArray();
            Assert.IsNull(byData);
        }
Ejemplo n.º 4
0
        public void ClearingForString()
        {
            byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
            CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
            Assert.IsNotNull(csData);

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