예제 #1
0
        public void X11_Hash_Should_Match()
        {
            var hasher = new X11();
            var result = hasher.Digest(testValue).ToHexString();

            Assert.Equal("a5c7a5b1f019fab056867b53b2ca349555847082da8ec26c85066e7cb1f76559", result);
        }
예제 #2
0
        public void X11_Hash_Should_Throw_On_Null_Input()
        {
            var hasher = new X11();

            Assert.Throws <ArgumentNullException>(() => hasher.Digest(null));
        }