Browse by Tags

All Tags » Unit Testing » Testing Guidelines » Art Of Unit Testing (RSS)

Pros and Cons and of using an Auto Mocking container in your tests by ISerializable - Roy Osherove's Blog : Agile

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

Basic Guidelines for using RowTest and data driven tests by ISerializable - Roy Osherove's Blog : Agile

I took a look at the code that was used to create the NUnit RowTest Extension (which is pretty neat) and found this in one of the samples: The highlighted areas in the code show something which I feel is problematic and is the manifestation of a unit...

Data Layer Testing: Test Inheritance Patterns by ISerializable - Roy Osherove's Blog : Agile

I'm preparing for my tutorial on Database and Data Layer unit testing that I will be giving at the Agile Practices Conference  next week. It's always nice to have a full 3 hours to get pretty deep into something. 75 minutes just isn't...

Mocking LINQ Queries, Extension methods and Anonymous Types by ISerializable - Roy Osherove's Blog : Agile

One of the things I wanted to show at my Interactive session on unit testing tips and tricks at TechEd this year was how you can "Stub" out results from LINQ Queries, or mock\stub Extension methods in .NET 3.5 ( what's the difference between...

The various meanings of TDD by ISerializable - Roy Osherove's Blog : Agile

Now that I'm having some real time to write something I thought I'd try to write down my thoughts starting all the way back from JAOO and what I learned from it. Specifically the whole notion of TDD, and what does TDD mean to different people...

The Art Of Unit Testing - Available to Purchase Online Now by ISerializable - Roy Osherove's Blog : Agile

I'm happy to announce that you can now purchase my book The Art Of Unit Testing through the Manning Early Access Program. Currently, the first five chapters are available, but when you purchase the MEAP version you get the new chapters as they come...

Code-Reuse in unit tests is more important than you think by ISerializable - Roy Osherove's Blog : Agile

Scott Bellware mentions how he really likes the new ideas in XUnit.NET, especially the lack of [Setup] and [TearDown] methods. (Brad Wilson wrote in the comments to my post about XUnit.NET that you can mimic this behavior by using the constructor of the...

TDD Pattern: Composite Logic Development and Testing by ISerializable - Roy Osherove's Blog : Agile

Here's a video I made that captures my current thoughts on writing complex business rules which have lots of validation logic. Here's the scenario I show in the video: A Validate method on an object actually uses lots of smaller methods to return...

Mocks and Stubs - The difference is in the flow of information by ISerializable - Roy Osherove's Blog : Agile

In class today when explaining the difference between stubs and mocks, I realized a simple explanation to this: Stubs and mocks may seem the same but the flow of information from each is very different. Stubs provide input for the application under test...
More Posts