SpecsFor icon indicating copy to clipboard operation
SpecsFor copied to clipboard

Partial matching should better-handle differing collection types.

Open MattHoneycutt opened this issue 8 years ago • 0 comments

If you call a method that accepts an IEnumerable with an ObjectSet<T> (or a List<T>), 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.

MattHoneycutt avatar Mar 03 '16 14:03 MattHoneycutt