Exemplo n.º 1
0
        public void ConstructorDefaultTest()
        {
            Hmac hmac = new Hmac();
            Sha1 sha  = new Sha1();

            Assert.AreEqual(sha.GetType(), hmac.HashAlgorithm.GetType());
            Assert.AreEqual(sha.HashSize, hmac.HashAlgorithm.HashSize);
            Assert.AreEqual(sha.BlockSize, hmac.Key.Length);
        }