NBuilder 2.1 Available

Posted on April 19, 2009. Filed under: .NET, Automated Testing, C#, Functional Testing, NBuilder, Unit Testing |

A new version of NBuilder is available.

This is a complete re-write of the original code but still has the same fluent interface with only a few slight differences.

The code base is now very robust and there are loads of new features, including hierarchy generation and persistence support.

Download the source and the binary from the NBuilder google code page


Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

One Response to “NBuilder 2.1 Available”

RSS Feed for ShouldBeAbleTo Comments RSS Feed

Hi, thanks for posting this library. I really like the fluent interface for building test data. There is one thing I’m not understanding though – the Pick class doesn’t seem to be doing what I thought it would.

For example, say I have the following code:
var makes = new string[] { “Ford”, “Chevy”, “Honda”, “Toyota” };
var vehicles = Builder.CreateListOfSize(10).WhereAll().Have(v => v.Make = Pick.RandomItemFrom(makes)).Build();

I expected I would have a list of Vehicles, where the Make property is basically randomly distributed from the list of makes provided. But what I’m finding is that all Vehicles in the list have the same Make property each time the test is run (the value chosen is random across test runs, but not within the list). Is that what it’s supposed to do, or am I missing something? Thanks.

Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: