1.1.0 - Mimus becomes much easier to use!
The motivation behind this release is to simplify the usage of Mimus by limiting the amount of chrome you need to add to your application. Specifically recording values no longer requires them to implement MockEquatable
. Furthermore you can use IdenticalTo
and EqualTo
matchers to compare AnyObject
s and Equatable
types without the need to implement MockEquatable
by them.
In general this has significantly decreased the amount of additional code we had to write for our objects to make them compatible with Mimus.
- BREAKING Changed
MockEquatable
equation function toequalTo(other: Any)
. This allows to record any type of value, not just types that conform toMockEquatable
, greatly increasing how versatile this framework is - Added
InstanceOf<T>
matcher - Added
EqualTo
andIdenticalTo
matchers - Fixed issue where matching dictionaries with subset of equal keys could be successful, even if they contained different amount of entires (Thanks @karolus for spotting this!)