Browse by Tags
All Tags »
Moq (RSS)
I realized that I never blogged about this cool feature contributed by Slava to Moq-Contrib . Auto-mocking containers was an idea originally (IIRC) from the guys at Eleutian , later on picked up by Jeremy Miller with Rhino Mocks and StructureMap . The...
In my very recent previous post I said "mocking and stubbing easier than ever", but actually forgot to mention the stubbing part :S. This one is not new for users of moq-contrib , but we decided to move this to the core Moq library as we get the question...
I've just released a new version of Moq which contains a few bug fixes but two extremely useful features: recursive mocks and mocked default values. Recursive mocks Quite often you have a root mock object from which other mocks should "hang" through property...
I've argued in the past that this theoretical discussion is utterly useless . In my experience you need slightly different things from your test doubles at different times and depending on the scenarios and what you care about testing in a particular...
If you're familiar with Moq , you know that it relies on lambda expressions heavily. This is very good as you get full support from intellisense and refactoring features in Visual Studio. However, it also means you're for the most part restricted to setting...
Today we shipped Moq v2.5. It's been a while since RC1 (a month or so feels so long for an open source agile project!) and we god very good feedback and suggestions for the final release. I'm pretty happy with the current drop and felt it was...
WCF is the second biggest framework after ASP.NET that sooner or later forces you to use a static "context" property to do anything beyond the trivial stuff. ASP.NET has the HttpContext.Current, whereas WCF has the WebOperationContext.Current for example...
Today, the MoQ API lets you setup expectations and later verify them, like so: [ Fact ] public void FillingRemovesInventoryIfInStock() { //arrange/setup var order = new Order (TALISKER, 50); var mock = new Mock < IWarehouse >(); //setup - expectations...
I wrote before about What's wrong with the Record/Reply/Verify model for mocking frameworks , and in that context, why Moq didn't provide a mock verification functionality. Given that the project is driven by users' feedback, both internal (our own team...
More Posts