NSubstitute v1.2.0 Release Notes

Release Date: 2011-09-01 // over 12 years ago
    • [NEW] Arg.Do() syntax for capturing arguments passed to a method and performing some action with them whenever the method is called.
    • [NEW] Arg.Invoke() syntax for invoking callbacks passed as arguments to a method whenever the method is called.
    • 👍 [NEW] Basic support for setting out/ref parameters.
    • [FIX] Property behaviour for indexed properties (Issue #53)
    • ⚡️ [UPDATE] [BREAKING] Auto-substitute for pure virtual classes, including common ASP.NET web abstractions. Use .Returns(x=>null) to explicitly return null from these members if required. Thanks to Tatham Oddie for original idea and patch, and Krzysztof Kozmic for suggesting and defining which classes would be safe to automatically proxy.
    • ⚡️ [UPDATE] Changed layout of package for eventual support for multiple framework targets.
    • [FIX] Failure to match calls with ref arguments using ReceivedWithAnyArgs().
    • 👻 [FIX] Incorrect ambiguous args exception when supplying value type arg specs for object arguments.