Tidycode

Tidy and clean code

Language support added to Fluent Tests

leave a comment »

Language support has been added upon a request. By simply delegating new language specific methods to the existing extension methods, a new language was created.

That means that we now can write test fluently in either english or swedish.

English : Ensure.That(5).Is.GreaterThan(4)

Swedish : Försäkra.Att(5).Är.StörreÄn(4)

Good or bad? I wont decide but I’ll stick with the english version myself. One problem that arises though are what Are is translated into? Any swedish user that has a suggestion, please leave a comment!

Advertisements

Written by arvander

May 3, 2011 at 11:25 pm

Posted in Uncategorized

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: