-2

How to write Nunit Test Case for following Linq Expression?

public IQueryable<City> Query(Expression<Func<City, bool>> predicate)
        {
            return _dbSet.Where(predicate);
        }
karthik
  • 29
  • 3

1 Answers1

1

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.

Abdo.Gama
  • 11
  • 2