public void Consistent_ModelWithIgnoreField()
        {
            var firstCall  = ClassHashCode.Get(typeof(Model));
            var secondCall = ClassHashCode.Get(typeof(Model));

            Assert.Equal(secondCall, firstCall);
        }
        public void Model_PrimitiveGeneric_NotEquals()
        {
            var intStringDict  = ClassHashCode.Get(typeof(ModelPrimitiveGeneric1));
            var longStringDict = ClassHashCode.Get(typeof(ModelPrimitiveGeneric2));

            Assert.NotEqual(intStringDict, longStringDict);
        }
        public static int Get(Type type)
        {
            var hashCoder = new ClassHashCode(type);

            hashCoder.Execute();
            return(hashCoder._hashCode);
        }
 public void Model_Recursive_StaticHashCode()
 {
     Assert.Equal(2053293150, ClassHashCode.Get(typeof(ModelRecursive)));
 }
 public void Model_Abstract_StaticHashCode()
 {
     Assert.Equal(-1437521649, ClassHashCode.Get(typeof(ModelWithAbstraction)));
 }
 public void Model_IgnoreField_StaticHashCode()
 {
     Assert.Equal(-1747574523, ClassHashCode.Get(typeof(Model)));
 }