← All articles
development

TypeMock 5.3.5 – WasCalledWithArguments

TypeMock Isolator 5.3.5 finally adds WasCalledWithArguments, letting you assert mock call arguments the way Rhino Mocks always could.

Donn Felker

Donn Felker

2009.09.21 · 1 min read · updated July 5, 2013

I normally do not blog bile by reposting another sites news, but this news is rather importnat in regards to TDD with Isolator.

I use Rhino Mocks 80% of the time for mocking, but that last 20% is Isolator. Why 20% – this is the real tough stuff to test. SharePoint, Silverlight, Tightly Coupled Legacy code (that I do not have source to), etc. In Rhino I’ve been able to assert with arguments for quite awhile now. Isolator did not fully support this, they do now!

See this release notice here: http://blog.typemock.com/2009/09/typemock-isolator-535-is-out.html

What does this mean? It means that you can assert whether or not arguments made to a particular mocked object were what you expect them to be. Perpaps. If they are not, then your test should fail. If your method performs various manipulations through various other calls, you can ensure that through the execution stack of your app, your calls are being made with what you expect them to be. If not, tests fail.

Fail fast is the name of the game and Isolator just stepped up theirs. Good stuff guys.

Donn Felker

Written by Donn Felker

I've spent 25+ years shipping software, writing books, and running my own companies. I write about thinking clearly, working for yourself, and doing real work while AI rewrites the rules. New essays land here every week.

Get the newsletter

Keep reading