Daniel Cazzulino's Blog : Moq 3.0 RTM!!!

Subscriptions

News

Source code published in this blog is public domain unless otherwise specified.

 

kzu in LinkedIn

  Microsoft MVP Profile

 Contact

Post Categories

Moq 3.0 RTM!!!

I've just released the latest version of Moq :))))

It's quite late on an intense week at Redmond, so I'm just going to paste the relevant portion of the changelog:


Version 3.0


* 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


* 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.)

 

 

As usual, get it at http://moq.me/get, browse the API at http://api.moq.me or go to the project homepage at http://moq.me.

 

Enjoy!!!

posted on Thursday, March 05, 2009 11:31 PM by kzu

# Moq 3.0 RTM!!! @ Friday, March 06, 2009 12:10 AM

I&amp;#39;ve just released the latest version of Moq :)))) It&amp;#39;s quite late on an intense week at Redmond

Anonymous

# Moq 3.0 RTM!!! - Daniel Cazzulino's Blog @ Friday, March 06, 2009 12:29 AM

Thank you for submitting this cool story - Trackback from DotNetShoutout

Anonymous

# New and Notable 303 @ Tuesday, March 10, 2009 1:13 PM

&lt;p&gt;Windows Azure/Cloud Computing Cloud Computing Links March 10, 2009 Windows Azure and Cloud Computing Posts for 3/9/2009+ Agile/Mocks/Software Design/Software Development Tools Moq 3.0 RTM!!! Scott Ambler shares the the Manifesto for Software Craftsmanship which extends the Agile Manifesto . Framework...&lt;/p&gt;

Anonymous

# #.think.in infoDose #20 (2nd Mar - 6th Mar) @ Tuesday, March 10, 2009 2:43 PM

#.think.in infoDose #20 (2nd Mar - 6th Mar)

Anonymous

# Weekly Web Nuggets #55 @ Saturday, March 14, 2009 8:00 PM

&lt;p&gt;Pick of the week: Smoke-and-Mirrors and Cloud Software General Development The Computer Performance Shell Game : Jeff Atwood demonstrates how you can use the new Reliability and Performance Monitor in Vista and Windows Server 2008 to monitor more aspects of your system’s performance. NP .NET Profiler...&lt;/p&gt;

Anonymous