private void TestResetPasswordWithoutPasswordRetrievalWithPasswordFormat(string passwordFormat)
        {
            var config = new NameValueCollection(_config);
            config["enablePasswordReset"] = "false";
            config["passwordFormat"] = passwordFormat;

            var provider = new MongoMembershipProvider();
            provider.Initialize(DefaultName, config);

            MembershipCreateStatus status;
            provider.CreateUser("test", "123456", "*****@*****.**", "Question", "Answer", true, null, out status);

            Assert.Throws<ProviderException>(() => provider.ResetPassword("test", "Answer"));
        }
        private void TestResetPasswordWithEnablePasswordResetWithRequiresQAndAWithPasswordFormat(string passwordFormat)
        {
            var config = new NameValueCollection(_config);
            config["enablePasswordReset"] = "true";
            config["requiresQuestionAndAnswer"] = "true";
            config["passwordFormat"] = passwordFormat;

            var provider = new MongoMembershipProvider();
            provider.Initialize(DefaultName, config);

            MembershipCreateStatus status;
            provider.CreateUser("test", "123456", "*****@*****.**", "Question", "Answer", true, null, out status);

            provider.ResetPassword("test", "Answer");
        }