Guest post by Lior Friedman. Interaction testing is a common type of unit testing. In this type of tests, one checks that a specific unit “interacts” with another way according to an agreed protocol, usually this protocol is embodied in the used class API. Its in interaction tests that mocking framework becomes real handy. Let’s …
Tag Archive: beginners
Permanent link to this article: http://www.typemock.com/blog/2010/08/09/how-to-verify-a-method-call-on-a-dependency/
May
13
Introduction for Beginners By @Dhelper
New to unit testing? Heard all these big terms and want to learn more about it?! Look no further. Typemock Senior Developer and Unit Testing Expert Dror B Helper, also known from Typemock TV regular cast, is going to give an introduction to isolation using Typemock Tools. “You’re in luck because I’ll be talking about …
Permanent link to this article: http://www.typemock.com/blog/2010/05/13/introduction-for-beginners-by-dhelper/
Permanent link to this article: http://www.typemock.com/blog/2010/02/05/more-from-this-week-typemock-tv/
Feb
05
Permanent link to this article: http://www.typemock.com/blog/2010/02/05/typemock-tv/
Feb
01
Introduction to Isolation
Well, it’s been a while since I’ve gone back to basics. But let’s do that, shall we? Why do we need isolation anyway? Step into my time machine, will you? It was about 4 years ago, when I decided to try TDD (Test Driven Development). I was a project manager at the time, and I …
Permanent link to this article: http://www.typemock.com/blog/2010/02/01/introduction-to-isolation/
Jun
29
Testing without SmtpClient
This is pretty awesome. here’s another way of really unit testing smtpClient code, without having a server running: I’m using Isolator to capture and redirect calls from the next instance of SmtpClient, capturing the parameters to a method call on it, and then asserting on the passed in object.
Permanent link to this article: http://www.typemock.com/blog/2009/06/29/testing-without-smtpclient/
Feb
04
Usage tip: inject faked behavior to code under test
Direct discussion with our users in our forums is immensly helpful when building our products; it brings out points that seem trivial to us but confusing to our users, which lets us know what should we simplify and improve on. A recent thread started with a user posting some test code that did not work as expected. …
Permanent link to this article: http://www.typemock.com/blog/2009/02/04/usage-tip-inject-faked-behavior-to-code-under-test/
Dec
17
Starting Test Driven Development using Typemock Isolator – Part 1
There are a lot of good tutorials on how to start Test driven development (TDD) that help understanding how he can start using this software development methodology. Unfortunately most of those tutorials explain how to write simple unit test to test some imaginary class and do not explain using mocking frameworks as part of the …
Permanent link to this article: http://www.typemock.com/blog/2008/12/17/starting-test-driven-development-using-typemock-isolator-part-1/
Sep
14
The woes of multithreaded design – How to find deadlock using Typemock Racer
I came across an article on Dr’ Dobb’s I’d like to share called The woes of multithreaded design. The amazing thing is that although the article was published at 1997 (11 years ago) the problem described in it is still relevant today. The article explains basic multithreading concepts (in Java) such as threads, thread safety …
Permanent link to this article: http://www.typemock.com/blog/2008/09/14/the-woes-of-multithreaded-design-how-to-find-deadlock-using-typemock-racer/
Aug
11
Writing Testable Code
A common problem that most beginners in the TDD world have is how to define a unit test. Although seems like a (very) simple task – writing a good unit test is not that simple. That’s why when I saw this post (On Google Testing blog) I know I found something worthwhile. In the post …
Permanent link to this article: http://www.typemock.com/blog/2008/08/11/writing-testable-code/
