public void DeterminingIfInvalidKeyFileIsPasswordProtectedThrowsException()
        {
            CreateInvalidKeyFile();

            ImportExportUtility utility = new ImportExportUtility();

            Assert.IsTrue(utility.IsPasswordProtected(keyFileName));
        }
        public void CanDetermineThatKeyFileIsPasswordProtected()
        {
            byte[] key = GenerateKey();

            ImportExportUtility utility = new ImportExportUtility();
            utility.Export(key, keyFileName, "foo");

            Assert.IsTrue(utility.IsPasswordProtected(keyFileName));
        }
        public void CanDetermineThatKeyFileIsNotPasswordProtected()
        {
            byte[] key = GenerateKey();

            ImportExportUtility utility = new ImportExportUtility();

            utility.Export(key, keyFileName, "");

            Assert.IsFalse(utility.IsPasswordProtected(keyFileName));
        }
        public void DeterminingIfInvalidKeyFileIsPasswordProtectedThrowsException()
        {
            CreateInvalidKeyFile();

            ImportExportUtility utility = new ImportExportUtility();
            Assert.IsTrue(utility.IsPasswordProtected(keyFileName));
        }