Unit tests for my controller include type validation of the model.
I first attempted:
but it failed, stating that the type is List<model>
This is true, but I don't want to worry about that during my testing... I just need to verify that the model is IEnumerable
As a result, I must use:
I would prefer something along the lines of:
- some sort of optional parameter for the BeOfType() to allow classes that inherit/implement T
PS: keep up the great work... FA is probably my most frequently used nuget package :)