-
Getting mock framework API rigth is uneasy task. Mock framework designers don’t have as much freedom as designers of other libraries: the purpose of a mock framework is not to expose an arbitraty API (unknown at the time of mock framework design) and intercept it in a transarent way, so developers can...
-
I have written a guest post about my impressions from Typemock Academy that was published in Typemock blog.
-
Today our team leader asked me to get someone in our team started on a new solution. This entails 2 things: A dev tree Tests and code (and yes, I choose this order on purpose) The Dev Tree Suppose you have to make a new solution. Create root: $/TeamProject/<SolutionName> Create main...
-
A couple of good sources for those who need to decide: Capability comparison made by Morgan Soley. Half year old but with a feature comparison table. Recently updated comparison by Andrew Kazyrevich. TypeMock Isolator is a clear winner if it fits in your budget. Otherwise Rhino Mocks or Moq seem to be...
-
TypeMock is has announced ASP.NET Bundle (consisting of Isolator and Ivonna). Being TypeMock user and customer, I am distributing their announcement. The text below is not mine – it’s written by TypeMock and explains how to get a free ASP.NET Bundle license (if you hurry up, like me :-)) Unit Testing...
-
There’s a lot of discussion going on about designing for testability. One of the problems of unit testing your code is that you might want to insert a fake object (like a stub or mock ) so that your code under test won’t actually call out to the database or an external logging class. You can solve this...
-
Part 1 Part 2 I promised to address matching reference and output arguments using lambda-based syntax that I proposed for TypeMock Isolator. Before getting there I would like to retract my original comment that faked method’s arguments should be matched by default. I still think that, like strong typing...
-
I was glad to see that my thoughts about figuring out the best syntax to control the match of faked method’s arguments haven’t been unnoticed by TypeMockians. Eli Lopian raised a few questions, and addressing them seems to be crucial for materialization of the whole idea. 1. Backward compatibility with...
-
Because of the nature of my work, coaching people on-site and training people in classes, I talk to a lot of developers and managers about the way people work. Unfortunately a lot of companies still don’t unit test their software and don’t setup an automated build. At times that’s specifically what we...
-
I enjoy compactness and clarity of TypeMock Isolator AAA syntax. But it still lacks certain features in comparison with the original RecordExpectation-based syntax. One of such features is support for exact match of method's attributes. Here's an example (I assume that MyClass is a static class...
-
I just read a post from Daniel Cazzulino about mocking extension methods. He wants to mock an extension method so that it behaves as he defines in his test, instead of actually calling the real method. To do this, Daniel creates an interface where every method signature is copied to, modifies the original...
-
Today Typemock released a new product called Isolator for SharePoint . If you’re confused, Typemock is the company and Isolator is their mocking framework you might (and should!) know. The new product is just for SharePoint as it can only test SharePoint related APIs. There’s some extremely cool stuff...
-
Sometimes you execute some method and the method returns void. But it still does some complicated stuff and you want to check if everything worked. But you can't access the internal variable that was created. You can mock everything away and make sure you set the proper return values. But there's...
-
I’m doing some work with TypeMock and I start to love it more and more. For example, how about removing your database completely from your continuous tests? Sure you can do some database testing during the nightly build, but please keep the tests as fast as possible. A little story about a build Just...