Error!
Success!

By tag: Mocking

showing:  of
0
kicks

Angry Birds of JavaScript: Green Bird - Mocking  (Unpublished)

In this post we will take a look at the Green Bird that can penetrate all of those hard to reach places and will mock and spy those stealing swine right where it hurts!. Slowly, one by one, the birds will take back what it theirs to keep!


Kicked By:
Drop Kicked By:
0
kicks

AutoMoq Introduction  (Unpublished)

AutoMoq is an “auto-mocking” container that automatically creates for Moq any fake objects that are necessary to instantiate the class under test.


Kicked By:
Drop Kicked By:
0
kicks

Unit testing LINQ to SQL using TypeMock  (Unpublished)

After watching a screencast on how to use Moles to unit test LINQ to SQL without hitting the database, I thought it would be interesting to do the same with TypeMock. But first, let’s investigate why traditional dependency breaking technique come short with LINQ to SQL.


Kicked By:
Drop Kicked By:
0
kicks

Learning how to use Manual Mocks for Testing  (Unpublished)

Taking a look at how to use manual mocks for testing Often times when creating unit tests we need to work in isolation in order to cover the paths we are attempting to test. When we want to test in isolation you can use a testing technique where you mock out your dependencies. When using Mocks yo...


Kicked By:
Drop Kicked By:
0
kicks

Introducing Entity Framework Unit Testing with TypeMock Isolator  (Unpublished)

One of the challenging things with current version of Entity Framework, its leakage of testability. Which means when you build an application or module (e.g. Repositories) that depends on entity framework, it will be very hard to unit test your code isolated from Entity Framework. This might lead to...


Kicked By:
Drop Kicked By:
0
kicks

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

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.


Kicked By:
Drop Kicked By:
0
kicks

Isolation Frameworks: Learning how to validate complex expectations  (Unpublished)

Taking a look at the various ways you can setup and validate complex expectations on your stubs/fakes. Validating these expectations will allow your to confirm in tests your dependencies are being used in the manor expected.


Kicked By:
Drop Kicked By:
0
kicks

Isolation Frameworks: Learning how to validate expectations  (Unpublished)

Taking a look at the various ways you can setup and validate expectations on your stubs/fakes. Validating these expectations will allow your to confirm in tests your dependencies are being used in the manor expected.


Kicked By:
Drop Kicked By:
0
kicks

Isolation Frameworks: Learning how to Stub  (Unpublished)

Learning how to use an isolation framework (Rhino Mocks) to help create simpler and more reliable unit tests. In this episode we will start off our learning experience by learning the basics. We will be taking a look at how to setup stubs/fakes in order to hard wire return values for our objects/...


Kicked By:
Drop Kicked By:
0
kicks

Automocking and BDD style tests with NUnit  (Unpublished)

A low friction approach to get rolling with TDD/BDD.


Kicked By:
Drop Kicked By:
0
kicks

Mocking - VISUG session (screencast)  (Unpublished)

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 na...


Kicked By:
Drop Kicked By:
0
kicks

Mocking - VISUG session  (Unpublished)

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.


Kicked By:
Drop Kicked By:
0
kicks

Why should I use mocking objects in my Unit Test?  (Unpublished)

If we cut out any "fanboy" or favouritism toward certain framework and that we try to keep it in a one liner... I would say: "To simulate behaviours of objects that are impractical or impossible to incorporate inside a unit test". The Wikipedia's article about Mock Object ment...


Kicked By:
Drop Kicked By:
0
kicks

Part 2 - Basic of mocking with Moq  (Unpublished)

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


Kicked By:
Drop Kicked By:
0
kicks

Part 1 - Introduction to Moq  (Unpublished)

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.


Kicked By:
Drop Kicked By: