MattHoneycutt / SpecsFor

SpecsFor is a light-weight Behavior-Driven Development framework that focuses on ease of use for *developers* by minimizing testing friction.
http://specsfor.com
MIT License
197 stars 70 forks source link

Partial matching should better-handle differing collection types. #91

Open MattHoneycutt opened 8 years ago

MattHoneycutt commented 8 years ago

If you call a method that accepts an IEnumerable with an ObjectSet (or a List), but then use Looks.Like(() => new T[] ... ), the partial matching will fail. Looks.Like should attempt to coerce the two objects into similar types for comparison, or at the least throw a better error indicating what went wrong.