Moq v3.0 Release Notes

    • ๐Ÿ‘ Silverlight support! Finally integrated Jason's Silverlight contribution! Issue #73
    • ๐Ÿคก Brand-new simplified event raising syntax (#130): mock.Raise(foo => foo.MyEvent += null, new MyArgs(...));
    • ๐Ÿ‘Œ Support for custom event signatures (not compatible with EventHandler): mock.Raise(foo => foo.MyEvent += null, arg1, arg2, arg3);
    • ๐Ÿคก Substantially improved property setter behavior: mock.VerifySet(foo => foo.Value = "foo"); (also available for SetupSet
    • Renamed Expect* with Setup*
    • Vastly simplified custom argument matchers: public int IsOdd() { return Match<int>.Create(v => i % 2 == 0); }
    • โž• Added support for verifying how many times a member was invoked: mock.Verify(foo => foo.Do(), Times.Never());
    • โž• Added simple sample app named StoreSample
    • ๐Ÿšš Moved Stub functionality to the core API (SetupProperty and SetupAllProperties)
    • ๐Ÿ›  Fixed sample ASP.NET MVC app to work with latest version
    • ๐Ÿ‘ Allow custom matchers to be created with a substantially simpler API
    • ๐Ÿ›  Fixed issue #145 which prevented discrimination of setups by generic method argument types
    • ๐Ÿ›  Fixed issue #141 which prevented ref arguments matching value types (i.e. a Guid)
    • ๐Ÿ‘ Implemented improvement #131: Add support for It.IsAny and custom argument matchers for SetupSet/VerifySet
    • ๐Ÿ‘ Implemented improvement #124 to render better error messages
    • Applied patch from David Kirkland for improvement #125 to improve matching of enumerable parameters
    • Implemented improvement #122 to provide custom errors for Verify
    • 0๏ธโƒฃ Implemented improvement #121 to provide null as default value for Nullable<T>
    • ๐Ÿ›  Fixed issue #112 which fixes passing a null argument to a mock constructor
    • ๐Ÿ‘ Implemented improvement #111 to better support params arguments
    • ๐Ÿ›  Fixed bug #105 about improperly overwriting setups for property getter and setter
    • Applied patch from Ihar.Bury for issue #99 related to protected expectations
    • ๐Ÿ›  Fixed issue #97 on not being able to use SetupSet/VerifySet if property did not have a getter
    • ๐Ÿ‘ Better integration with Pex (http://research.microsoft.com/en-us/projects/Pex/)
    • ๐Ÿ›  Various other minor fixes (#134, #135, #137, #138, #140, etc.)