DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

11
kicks
submitted by powerrush powerrush 10 months, 13 days ago

blog.troyd.net — Instead of using a different Assert method for each different type of assertion (e.g.: Assert.AreEqual() for equality comparison, or Assert.IsTrue() for boolean evaluation), the new Constraint-Based Assert Model introduced in NUnit 2.4 utilizes only one Assert method named Assert.That().

Add a comment 2 comments | category: | Views: 0 | Get KickIt image code
tags: , , , , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
Nice article, I wasn't aware of this but like those fluent interfaces and the way the code looks like when they are used.
posted by .NetKicks 9 months, 13 days ago
Thanks! I like the way they architected the "Is" vs "Is.Not" in the syntax helpers.

FWIW, in looking at their source code, they utilize an internal Stack to implement operators such as "No" and "All" -- in the ConstraintBuilder class).
posted by powerrush powerrush 9 months, 13 days ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge