I have a method that returns an IEnumerable that I want to be able to test. For the test inputs that I will be using, it will return approximately 10 values.
What is the cleanest way to write a test in this situation?
Update:
Many thanks for the answers so far. Several useful suggestions that I am now going to investigate.
I don't think that my original question was very well worded, a better way would have been as follows:
I want to write several tests for a method that returns an IEnumerable of KeyValuePair<string, uint>
. For the the sets of test data that I will be using, the method will return only a few values. ~10 values in most cases.
What is the best way of me expressing my sets of expected return values and testing the method in MSTest?