public void FindUsersByNameTest() { ColorettoMembershipProvider target = new ColorettoMembershipProvider(); // TODO: Initialize to an appropriate value string usernameToMatch = string.Empty; // TODO: Initialize to an appropriate value int pageIndex = 0; // TODO: Initialize to an appropriate value int pageSize = 0; // TODO: Initialize to an appropriate value int totalRecords = 0; // TODO: Initialize to an appropriate value int totalRecordsExpected = 0; // TODO: Initialize to an appropriate value MembershipUserCollection expected = null; // TODO: Initialize to an appropriate value MembershipUserCollection actual; actual = target.FindUsersByName(usernameToMatch, pageIndex, pageSize, out totalRecords); Assert.AreEqual(totalRecordsExpected, totalRecords); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void FindUsersByNameTest() { ColorettoMembershipProvider target = new ColorettoMembershipProvider(); string usernameToMatch = "ValidUserTest"; int pageIndex = 0; int pageSize = 10; int totalRecords = 0; int totalRecordsExpected = 1; var actual = target.FindUsersByName(usernameToMatch, pageIndex, pageSize, out totalRecords).Count(); Assert.AreEqual(totalRecordsExpected, totalRecords); Assert.AreEqual(1, actual); }