Example #1
0
        public void MetroHash128_Implementation_HashSizeInBits_Is64()
        {
            var metroHashConfig = Mock.Of <IMetroHashConfig>(mhc => mhc.Clone() == mhc);
            var metroHash       = new MetroHash128_Implementation(metroHashConfig);

            Assert.Equal(128, metroHash.HashSizeInBits);
        }
Example #2
0
        public void MetroHash128_Implementation_Config_IsCloneOfClone()
        {
            var metroHashConfig3 = Mock.Of <IMetroHashConfig>();
            var metroHashConfig2 = Mock.Of <IMetroHashConfig>(mhc => mhc.Clone() == metroHashConfig3);
            var metroHashConfig  = Mock.Of <IMetroHashConfig>(mhc => mhc.Clone() == metroHashConfig2);


            var metroHash = new MetroHash128_Implementation(metroHashConfig);

            Assert.Equal(metroHashConfig3, metroHash.Config);
        }