How to write Nunit Test Case for following Linq Expression?
public IQueryable<City> Query(Expression<Func<City, bool>> predicate)
{
return _dbSet.Where(predicate);
}
How to write Nunit Test Case for following Linq Expression?
public IQueryable<City> Query(Expression<Func<City, bool>> predicate)
{
return _dbSet.Where(predicate);
}
Your unit tests should be checking that your custom logic is working as expected. I think you are trying to test the framework code which should be working fine.