When non-default membership providers are installed (e.g. mysql.web.security.mysqlmembershipprovider), the following tests incorrectly fail:
1. WebMatrix.WebData.Test.PreApplicationStartCodeTest.StartInitializesSimpleMembershipByDefault()
2. WebMatrix.WebData.Test.PreApplicationStartCodeTest.StartDoesNotInitializeSimpleMembershipWhenDisabled()
I believe the tests incorrectly rely on the default configuration, which is to have only the SqlMembershipProvider installed.
Rewriting them similar to this fixes the issue:
// Verify simple membership
var simpleMembershipProviders = Membership.Providers.OfType<SimpleMembershipProvider>();
Assert.Equal(1, simpleMembershipProviders.Count());
Comments: fixed not too long ago (see https://aspnetwebstack.codeplex.com/workitem/867)
1. WebMatrix.WebData.Test.PreApplicationStartCodeTest.StartInitializesSimpleMembershipByDefault()
2. WebMatrix.WebData.Test.PreApplicationStartCodeTest.StartDoesNotInitializeSimpleMembershipWhenDisabled()
I believe the tests incorrectly rely on the default configuration, which is to have only the SqlMembershipProvider installed.
Rewriting them similar to this fixes the issue:
// Verify simple membership
var simpleMembershipProviders = Membership.Providers.OfType<SimpleMembershipProvider>();
Assert.Equal(1, simpleMembershipProviders.Count());
Comments: fixed not too long ago (see https://aspnetwebstack.codeplex.com/workitem/867)