public void CheckUserByLogin() { ResetData(); List <DBUser> users = new List <DBUser>(); DBUser user1 = new DBUser(); DBUser user2 = new DBUser(); string login = "******"; user1.Login = login; users.Add(user1); users.Add(user2); mockUsers.Setup(a => a.Get()).Returns(users); var result = UserO.CheckUser(login); Assert.AreEqual(true, result); }