有人可以为验证用户密码的单元测试提供一些示例代码吗?
//set test to crate user
AsaMembershipProvider prov = this.GetMembershipProvider();
//call get user
MembershipCreateStatus status;
MembershipUser user = prov.CreateUser("testUserX", "12345", "test.UserX@abc.com", "", "", true, null, out status);
user = prov.GetUser("testUserX", false);
//TODO Asserts
Assert.AreEqual(status, MembershipCreateStatus.Success);
Assert.AreEqual(user.UserName, "testUserX");
Assert.AreEqual(user.Email, "test.userx@abc.com");
//Assert.AreEqual(password, "12345");