KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to write a unit test for a method which takes an IQueryable collection. How should I instantiate the collection in my unit test before I pass it to the method for test? This is the default code in my test IQueryable<Item> Items = null; // TODO: Initialize to an appropriate value And here is what I tried writing IQueryable<Item> Items = new IQueryable<Item>; // TODO: Initialize to an appropriate value Am I making a school boy error?
Tags (comma-separated)
Save Edits
Cancel