Moq v2.0 Release Notes

    • 🔨 Refactored fluent API on mocks. This may cause some existing tests to fail, but the fix is trivial (just reorder the calls to Callback, Returns and Verifiable)
    • ➕ Added support for retrieving a Mock<T> from a T instance created by a mock.
    • ➕ Added support for retrieving the invocation arguments from a Callback or Returns.
    • Implemented AtMostOnce() constraint
    • ➕ Added support for creating MBROs with protected constructors
    • 🤡 Loose mocks now return default empty arrays and IEnumerables instead of nulls