Stories recently tagged with 'Moq'

Using Mocking Framework - Moq(www.kitchaiyong.net)

submitted by kitchaiyongkitchaiyong(89) 1 year, 11 months ago

This post will tell how to incorporate one of the popular & free object mocking framework, Moq in your unit tests. read more...

add a comment |category: |Views: 197

tags: another

Auto-mocking hierarchies (a.k.a. recursive mocks) with Moq(bengtbe.com)

submitted by bengtbebengtbe(470) 2 years, 5 months ago

In this post I will show how the auto-mocking hierarchies (a.k.a. recursive mocks) feature of Moq can greatly simplify your unit tests. read more...

add a comment |category: |Views: 32

tags: another

Mocking - VISUG session (screencast)(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 2 years, 8 months ago

Abstract: "This session provides an introduction to unit testing using mock objects. It builds a small application using TDD (test driven development). To enable easier unit testing, all dependencies are removed from code and introduced as mock objects. Afterwards, a mocking framework by the name of Moq (mock you) is used to shorten unit tests and create a maintainable set of unit tests for the example application. " read more...

add a comment |category: |Views: 26

tags: another

Mocking - VISUG session(blog.maartenballiauw.be)

submitted by brianmdbrianmd(5) 2 years, 9 months ago

Thursday evening, I did a session on Mocking for the VISUG (Visual Studio User Group Belgium). As promised, here is the slide deck I’ve used. The session will be available online soon, in the meantime you'll have to go with the slide deck. read more...

add a comment |category: |Views: 3

tags: another

Beginning Mocking With Moq 3 - Part 4(codethinked.com)

submitted by jcoffmanjcoffman(370) 2 years, 10 months ago

into to mocking using moq libary, part 4 read more...

add a comment |category: |Views: 149

tags: another

Beginning Mocking With Moq 3 - Part 2(codethinked.com)

submitted by justin_etheredgejustin_etheredge(8539) 2 years, 11 months ago

Beginners introduction to mocking using the recently released Moq 3 framework. read more...

1 comment |category: |Views: 228

tags: another

Beginning Mocking With Moq 3 – Part 1(codethinked.com)

submitted by justin_etheredgejustin_etheredge(8539) 2 years, 11 months ago

A intro to mocking using the newly release Moq 3 framework. read more...

4 comments |category: |Views: 446

tags: another

Part 3 – Advanced mocking functionalities of Moq(blog.decayingcode.com)

submitted by arch4ngelarch4ngel(585) 2 years, 11 months ago

When you have some simple scenario like “when the method “GetTax” is called, return 5$” it’s a simple scenario that a lot of mockers will see. However, there is some rarer scenario that people will wonder how to do it. One of those scenario is with event handlers. read more...

add a comment |category: |Views: 48

tags: another

Part 2 - Basic of mocking with Moq(blog.decayingcode.com)

submitted by arch4ngelarch4ngel(585) 3 years ago

As every mocking framework, except TypeMock which can perform differently, every mocked class can't be sealed and methods that need to be mocked need to be public. If the class is not inheriting from an interface, the method that are being mocked need to be virtual. Once this is cleared... let's show a simple example of a Product having it's price calculated with a Tax Calculator. read more...

add a comment |category: |Views: 54

tags: another

Part 1 - Introduction to Moq(blog.decayingcode.com)

submitted by arch4ngelarch4ngel(585) 3 years ago

This is the first post of a serie on mocking with Moq. I'll be giving a conference a .NET Montreal Community on February 25th and I though there it would be good reference to anyone attending the @Lunch event. read more...

add a comment |category: |Views: 97

tags: another

Mocking ASP.NET MVC HtmlHelper using Moq(blog.benhartonline.com)

submitted by benhartbenhart(100) 3 years, 3 months ago

HtmlHelper is used quite frequently in ASP.MVC. It has a number of dependencies, so testing the numerous extension methods on it (both default, and added) can make for some ugly code. This simple code sample shows how to mock out the dependencies (ViewContext for one) using Moq. read more...

add a comment |category: |Views: 397

tags: another

Is Moq too powerful.(weblogs.asp.net)

submitted by vkreyninvkreynin(1424) 3 years, 7 months ago

Triggers discussion about mocking framework. read more...

add a comment |category: |Views: 20

tags: another

MoQs Rox(statestreetgang.net)

submitted by yesthatmcgurkyesthatmcgurk(4063) 3 years, 7 months ago

My first impressions of the MoQ object mocking framework... Hell, my impressions with the first mocking framework I've ever used. tl;dr: Niiiiiice. read more...

add a comment |category: |Views: 11

tags: another

Introduction to Mocking with Moq(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 3 years, 8 months ago

Short screencast introduction to Mocking with Moq read more...

add a comment |category: |Views: 337

tags: another

Grouping expectation verification in Moq(codethinked.com)

submitted by munchrmunchr(45) 3 years, 10 months ago

An idea on a feature addition to Moq where expectations could be put into groups and then verified independently. This would allow construction of complex mocks that could be shared across many tests. read more...

add a comment |category: |Views: 12

tags: another

Moq: Why do we need yet another NET mocking framework?(clariusconsulting.net)

submitted by powerrushpowerrush(3873) 3 years, 10 months ago

"I've already argued in the past why I think forcing regular developers to learn and understand the difference between a stub, a fake, a "true" mock and a dynamic mock is unproductive and largely irrelevant for their TDD needs. Also, even though quite common in the mocking community, the typical record/replay model is alien to developers and introduces yet another new concept that makes the learning curve steeper than needed. " read more...

add a comment |category: |Views: 103

tags: another