public void GetAllUsers_GivenTwoUsers_ReturnsTwoUsers() { //Arrange var expected = 2; var tot = -1; //Act var actual = _mProv.GetAllUsers(0, 99, out tot); //Assert Assert.AreEqual(expected, actual.Count); Assert.AreEqual(expected, tot); }
public void GetAllUsers_FourPerPage_ReturnsFourRecords() { UserParameters u = _testUsers[0]; int total = 0; //We should at least get four of our five test users MembershipUserCollection users = _mp.GetAllUsers(0, 4, out total); Assert.AreEqual(total, 4); }