Using Isolate.Invoke.Event enable event driven unit testing by invoking events on fake or “real” object. If you use events to communicate between parts of your application – it’s a feature you need to know and use. In the last couple of months I have been using it a lot but there is one wall I … Continue reading How to: Invoke events inside your production code using Typemock Isolator
Tag: Unit tests
Rapid Dev – a new unit testing tool is born
It’s no secret that the .NET community has a lot to learn as far as unit testing is concerned. One of the contributing factors to unit testing adaptation is tool support – it’s not secret that if developers can crate and run tests easily form the comfort of their development environment (i.e. Visual Studio). But … Continue reading Rapid Dev – a new unit testing tool is born
Two podcasts about unit testing
I listen to podcasts all of the time, I don’t listen to them in any specific order - I just download the new podcasts and choose one in random. From time to time it looks as if I have some pattern in my listening preferences but it’s purely coincidental. Last week without intending to I … Continue reading Two podcasts about unit testing
Introducing CountdownEvent
The new .NET 4.0 has a lot of new multi-threaded goodness, one of which is the CountdownEvent, used to signal between thread just like the good old AutoResetEvent and ManualEvent. The big difference (as you might have already guessed) is that CountDownEvent can be used to signal after several set has been called. The reason … Continue reading Introducing CountdownEvent
TDD is more than just writing unit tests
In the last few weeks I’ve been presented with a new idea – a team that writes automated unit tests after the code has been fully implemented. Coming from a test first background the practice of writing unit tests seemed – just wrong. If writing unit tests for your code is a good practice – … Continue reading TDD is more than just writing unit tests
Unit testing custom StyleCop rules using Typemock Isolator
I’ve never was a big fan of “coding standard” – Although I always thought that the same style should be kept throughout a project or even the entire company’s code base - the idea of forcing developers to write the same code based on a document nobody ever read seemed just wrong. Fast forward a … Continue reading Unit testing custom StyleCop rules using Typemock Isolator
When to use the SetUp attribute
I want to share with you a debate we had at work today: Which one of the following is a better test – this one? [TestFixture]public class MyClassTests{ private MyClass myClass; [SetUp] public void Initialize() { var arg1 = //... var arg2 = //... // More initialization logic myClass = new MyClass(arg, arg2); } [Test] … Continue reading When to use the SetUp attribute
Docx 2 UnitTest – an interesting tool for VS2010
Last week I got a chance to check out a new unit testing related tool called Docx 2 unitTest. When I first saw it I remembered a previous job where I needed to produce a lot of documents along with my code. It was such a hassle that one of my fellow developers planed to … Continue reading Docx 2 UnitTest – an interesting tool for VS2010
Why TDD is good for testers
A while back during a presentation on unit tests a member of the audience asked me a question I hope never to answer ever again - “So these unit tests you’re talking about, are they written by developers?” The reason I don’t particularly care for that question is that developers think that unit tests (and … Continue reading Why TDD is good for testers
Introduction to Mock objects session coming up
New to unit testing? Heard about mocks/stubs/fakes and want to know what it’s all about? You’re in luck because I’ll be talking about mock objects from the ground up. It’s going to be an online session so everybody’s invited! Check out vconf site for more details.
