public void Compuate_with_empty_string_returns_hash_test()
        {
            var compute = new ComputeHash();
            var result  = compute.Compute(string.Empty);

            Assert.AreEqual(HashEmptyString, result);
        }
        public void Compuate_with_json_string_returns_hash_test()
        {
            var compute = new ComputeHash();
            var result  = compute.Compute(JsonConvert.SerializeObject(_hashTestParent));

            Assert.AreEqual(HashObjectString, result);
        }
        public void Compuate_different_hash_returns_false_test()
        {
            var compute = new ComputeHash();

            var obj = new HashTestParent()
            {
                someProperty = "test one",
                someChild    = new HashTestChild()
                {
                    childProperty = "test Child"
                }
            };
            var latestHash = compute.Compute(JsonConvert.SerializeObject(obj));
            var result     = compute.Compare(HashObjectString, latestHash);

            Assert.IsFalse(result);
        }
        public void Compuate_with_null_throws_error_test()
        {
            var compute = new ComputeHash();

            Assert.That(() => compute.Compute(null), Throws.TypeOf <ArgumentNullException>());
        }