public void Create_WhenGivenValidString_ReturnsHash(int saltByteSize, string text)
        {
            var p = new SHA2CryptoProvider(saltByteSize);

            var hash = p.CreateHash(text);

            Console.WriteLine("Hash: {0}", hash);

            Assert.IsNotNullOrEmpty(hash);
        }
        public void Validate_WhenGivenAutoGeneratedString_ReturnsValid(int saltByteSize)
        {
            var p = new SHA2CryptoProvider(saltByteSize);

            var csprng = new RNGCryptoServiceProvider();
            var arr = new byte[64];

            csprng.GetBytes(arr);

            var text = Encoding.UTF8.GetString(arr);

            Console.WriteLine("Text: {0}", text);

            var hash = p.CreateHash(text);

            Console.WriteLine("Hash: {0}", hash);

            var valid = p.ValidateHash(text, hash);

            Assert.IsTrue(valid);
        }