Friday, June 5, 2009
Unit test examples
Probably every one gets questions from time-to-time on how you should do unit testing. Of course you can present the normal examples (testing Add, Subtract, etc).
My question is, do you have any cool real world examples I could use for a presentation, or some ideas for real world examples?
Thanks a bunch in advance!
Thursday, June 4, 2009
We screwed up and we apologize
The 5.3.1 version we uploaded here was not different functionally than the one we published yesterday, but enough to cause problems, as Travis wrote in the comments here. We are about saving development time, and we didn't do it this time.
We're taking measures that it will not happen again. Part of the work is more automation on the build part, the rest is more about our release process. We will get you releases earlier, and we will make sure they are the ones that we release later.
Thursday, May 28, 2009
For Your Eyes Only: Isolator 5.3.1
Hi Guys,
This version will go out next week, but you can use it right now. Download the 32 bit version and the 64 bit version.The new features are:
- Argument matching based on supplied criteria delegate:
Isolate.WhenCalled((int i, string s)=> fake.MethodReturnInt(i, s)).
AndArgumentsMatch((i, s) => i > 5 && s.StartsWith("ab")).
WillReturn(10);
- Faking base class constructor
Isolate.Fake.Instance<Derived>(Members.CallOriginal, ConstructorWillBe.Called, BaseConstructorWillBe.Ignored);
- Fake All Instances of a type
Isolate.Swap.AllInstances<Product>().With(fake);
- And of course, fake DateTime.Now
Isolate.WhenCalled(() => DateTime.Now).WillReturn(new DateTime(2008, 1, 1));
- Several issues involving resolving generic methods and types have been resolved
- It is now possible to set more than one behavior on static calls defined on structs.
- Fixed an issue with fakeing behavior on non public properties on generic and abstract types
- Generic methods in test classes decorated by the [Isolated] attribute do not cause an exception anymore
- Fixed a NullReferenceException when sequencing calls on live fakes
- Field values are now properly copied from the swapped instance to the swapping fake when using Swap.NextInstance()
- Fixed an issue loading the Isolator Visual Studio add-in within localized editions of Visual Studio on English operating systems
- Fixed an issue faking XElement behavior in the VB Friendly API
Monday, May 25, 2009
ASP.NET Bundle launch – Free license for you.
I apologize for the delay in sending this to you guys, the launch was a huge success, this caused more work for us than we expected.
Please send me an email with the details (name and email) of the person you want the license to be sent to, and I will send it to them.
I will try to send all licenses this week, but since this is a short work week for us, some of you may only receive it next week.
Moran
Sunday, May 24, 2009
Upcoming Features
Hi everyone!
This is a treat. You're the first to see it. These new movies show the direction we're taking in the near future. Isolation framework is nice, but we want to really simplify unit testing. Here's how (press the links to open in a new tab/window).
The first movie shows two features. The first is IntelliFake (hey, we're open to suggestions about the naming too). It creates code snippets inside your test as you type for faking dependencies. The second is analyzing your test by running it. Whenever hitting an isolation point, it asks the user to enter a value to be returned, and creates the appropriate snippets in the test.
The second movie is just as cool. It shows how from a debugging session you can create a new unit test that isolates all the dependencies it encountered so far. It's useful when you're debugging, and want to create a unit test that reproduces the bug with minimum effort.
We're really excited about this, it opens a lot of options in the realm of making unit testing even easier than today. What do you think?
Monday, May 18, 2009
ASP.NET bundle launch + Free licenses
For the launch of this unit testing bundle, Typemock is giving away licenses to bloggers and their readers, all details for this campaign will be uploaded to our blog shortly.
Typemock MVP’s (or in other words you guys) will get each a free Isolator ASP.NET bundle license to give / raffle to one of your readers.
The licenses will be sent to you by Wednesday 20/05/09, follow this blog for more details.
Moran
Typemock Marketing
moran (at) typemock (dot) com
Monday, May 11, 2009
Join Our Twitter Feed
Hi everyone,
As you've probably seen, we now have Twitter splattered all over the place. We're going also to put the Typemock Twitter feed on our homepage next.
Do you want to your Typemock posts to appear on our feed? Easy. First let me know, so we can add your RSS blog feed, and tag your post with "Typemock". We'll take it from there, and your post will appear in our feed.
Let me know if you're interested, and we'll get right on it.