示例#1
0
        public void TestShaDiff()
        {
            var hashCash2 = new HashCash(hashCash.dt, hashCash.resource + 1, hashCash.salt, hashCash.counter);

            Assert.That(hashCash2.Hash(), Is.Not.EqualTo(hashCash.Hash()));
        }
示例#2
0
        public void TestShaMatch()
        {
            HashCash hashCash2 = hashCash;

            Assert.That(hashCash2.Hash(), Is.EqualTo(hashCash.Hash()));
        }