NSubstitute v0.9.5 Release Notes

    • ๐Ÿ›  [FIX] Fixed bug when trying to return null from a call to a substitute.
    • ๐Ÿ›  [FIX] Equals() for class substitutes fixed by not intercepting Object methods Equals(), ToString() and GetHashCode().
    • [NEW] Raise.Event() methods to raise any type of event, including delegates.
    • ๐Ÿšš [BREAKING] Raise.Action() methods removed. Use Raise.Event() (e.g. Raise.Event>()).
    • [BREAKING] Renamed Raise.Event() methods to Raise.EventWith().
    • โšก๏ธ [UPDATE] Arg matchers can be specified using more specific, compatible type (Arg.Is(..) for arg of type object).
    • ๐Ÿ“š [NEW] NSubstitute website and documentation https://nsubstitute.github.io
    • [FIX] Formating for argument matchers that take predicate functions.
    • [FIX] Match single argument matcher passed to params arg (#34)
    • [FIX] Detect ambiguous arg matchers in additional case (#31)
    • [FIX] Can modify event handler subscriptions from within event callback
    • โšก๏ธ [UPDATE] Update to Castle.Core 2.5.2
    • ๐Ÿ”€ [FIX] Can substitute for SynchronizationContext in .NET4 (fixed in Castle.Core)
    • ๐Ÿ“ฆ [NEW] NSubstitute available as NuPack package