BetterMembership.Tests.Web.BetterMembershipProviderTests.GivenRequiresQuestionAndAnswerAttributeWhenInitializeThenProviderException C# (CSharp) Метод

GivenRequiresQuestionAndAnswerAttributeWhenInitializeThenProviderException() приватный Метод

        public void GivenRequiresQuestionAndAnswerAttributeWhenInitializeThenProviderException()
        {
            // arrange
            var provider = new BetterMembershipProvider();
            var config = new NameValueCollection { { "requiresQuestionAndAnswer", "true" } };

            // act // assert
            Assert.Throws<ProviderException>(() => provider.Initialize("name", config));
        }
BetterMembershipProviderTests