Mocking Episodes

# 142 Isolation Frameworks: Learning to use Partial Mocks

9/22/2009

Level: Intermediate

Author: Derik Whittaker

Tags: Unit Testing Mocking Rhino Mocks

Views: (683) Watched: (2492)

In this episode we are going to continue our series on learning how to use an isolation framework (Rhino Mocks) to help create simpler and more reliable unit tests.

This time around we are going to be focusing how to use Partial Mocks to test abstract classes and methods within a concrete class.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.

# 138 Isolation Frameworks: Mocking Out/Ref Arguments

9/3/2009

Level: Intermediate

Author: Derik Whittaker

Tags: Rhino Mocks Mocking

Views: (721) Watched: (1929)

In this episode we are going to continue our series on learning how to use an isolation framework (Rhino Mocks) to help create simpler and more reliable unit tests.

We are going to focusing this episode on how to setup you mocks when you need to mock a class with either Out or Ref arguements.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.

# 130 Isolation Frameworks: Learning how to validate complex expectations

7/28/2009

Level: Intermediate

Author: Derik Whittaker

Tags: Mocking Rhino Mocks

Views: (1412) Watched: (1634)

In this episode we are going to continue our series on learning how to use an isolation framework (Rhino Mocks) to help create simpler and more reliable unit tests. We will focus our learning this time around on 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.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.

# 127 Isolation Frameworks: Learning how to validate expectations

7/16/2009

Level: Intermediate

Author: Derik Whittaker

Tags: Mocking Rhino Mocks

Views: (819) Watched: (1913)

In this episode we are going to continue our series on learning how to use an isolation framework (Rhino Mocks) to help create simpler and more reliable unit tests. We will focus our learning this time around on 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.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.

# 125 Isolation Frameworks: Learning how to Stub & Fake Data

7/9/2009

Level: Intermediate

Author: Derik Whittaker

Tags: Mocking Rhino Mocks

Views: (786) Watched: (2758)

In this episode we are going to start 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/methods.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.

# 62 Introduction to the AutoMocking Conatiner in StructureMap

11/6/2008

Level: Intermediate

Author: Derik Whittaker

Tags: Mocking StructureMap

Views: (472) Watched: (2800)

In this episode you will take a look at how to use the AutoMocking Cotainer that is part of StructureMap 2.5

You will be shown how to setup and use this container to reduce noise in your tests.

# 35 Taking a look at the AAA syntax in RhinoMocks 3.5

8/12/2008

Level: Beginner

Author: Derik Whittaker

Tags: Unit Testing Mocking Rhino Mocks

Views: (399) Watched: (3317)

In this episode we take a look at the new AAA (Arrange, Act, Assert) syntax that is part of RhinoMocks 3.5.

By the end of the episode you should have an general understanding of how the new syntax works and how it differs from the Record/Replay model.

# 20 Testing Abstract classes with Rhino Mocks

7/8/2008

Level: Intermediate

Author: Derik Whittaker

Tags: Unit Testing Rhino Mocks Mocking

Views: (689) Watched: (3074)

In this episode we will walk you though how to test your abstract classes with Rhino Mocks.

You will learn how that by using a mocking framework you can simplify and reduce the friction in testing your abstract classes and methods.

# 8 Introduction to Mocking with Moq

6/5/2008

Level: Beginner

Author: Derik Whittaker

Tags: Mocking Moq

Views: (1863) Watched: (9055)

In this episode we will learn how to use the Mocking framework Moq. This is an introductory overview of using Moq and is meant for those who are new to either mocking or Moq.