SpecsFor
SpecsFor copied to clipboard
Partial matching should better-handle differing collection types.
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.