Browse by Tags

All Tags » Testing Guidelines (RSS)

Test driven design – Willed vs. Forced Designs

I’m writing this as a typemock employee, but also as someone who has sat on the other side of the line for several good years, and can argue in both ways. The following, I feel, is true no matter where I work.   There are two ways people use tests...

Test Review: MEF

it’s late at night, and my new baby just went to sleep, again. Time for another test review! (you can find other test reviews here ) Test Review - MEF from Roy Osherove on Vimeo .

Test Review #3 – Unity

Watch previous videos: Test Review #1 – NerdDinner Test Review #2 – ASP.NET MVC     In this video I go over the tests for Microsoft Unity Application Block. Overall the quality of the tests in Unity is pretty good! I could certainly recommend...

Test Review #2 – ASP.NET MVC Unit Tests

See other reviews: Review #1: NerdDinner Here’s the second video review of Unit Tests. This is another one written by Microsoft – ASP.NET MVC ( source ). First, it’s important to state how surprised I was by the high quality of the tests in MVC. The tests...

Unit Testing Denial Pattern #1: Pretending the test is no longer valid

Today was both a good day for e and a bad day for me. Good day because I managed to get a full suite of tests that were somehow failing to work again after a refactoring that got out of hand. Bad - because out of all the tests, one of them failed. Here...

Pros and Cons and of using an Auto Mocking container in your tests

In regards to my post about injecting mocks and stubs using a container in your tests, Dave asks in the comments: Why would you want to do this in the first place? Here are the things I can think about right now (pros and cons). I'd love to hear your...

Testing XML serialization attributes

Not sure how I feel about this particular brand of testing syntax . still, it's good that someone thought this problem through - testing xml serialization attributes. [via the morning brew ]

Injecting Typemock Stubs and Mocks using the StructureMap container in a unit test

Someone asked for examples of how you'd inject stubs and mocks when you'd like your object under test to use a container such as StructureMap . here are a couple of simple tests to show this using Typemock Isolator . the first uses the string based mocks...

Creating a AutoMockingContainer with Microsoft Unity - Pretty darn simple.

updated : made container more readable Just created a little Auto Mocking Container built on Microsoft Unity. It was very very simple. here's a test that uses it. We tell the container to Returna stub for T because we will want whoever calls resolve<T>...

Testing ASP.NET MVC Controllers with Typemock Isolator

Scott Hanselman posted his notes and slides (and movies!) from his talk on the ASP.NET MVC framework, where he also mentioned and shows how he's write unit tests for the MVC framework in ASP.NET. Scott has examples both in Moq and Rhino.Mocks on how to...
Posted by RoyOsherove | with no comments
More Posts Next page »