Le Kevin dot com

photographic-poetic-musical horizon

Browsing Posts in C# Sharp

NUnit is a unit-testing framework for all .Net languages. Initially ported from JUnit, the current production release, version 2.5, is the sixth major release of this xUnit based unit testing tool for Microsoft .NET. It is written entirely in C# and has been completely redesigned to take advantage of many .NET language features, for example custom attributes and other reflection related capabilities. NUnit brings xUnit to all .NET languages.

NUnit 2.0 is an excellent example of idiomatic design. Most folks who port xUnit just transliterate the Smalltalk or Java version. That’s what we did with NUnit at first, too. This new version is NUnit as it would have been done had it been done in C# to begin with. ~Kent Beck

via: http://www.nunit.org/index.php?p=download

Classes        :> Entities:NOUNS                   => ex: [PERSON]

Properties :> Description:Adjectives   => ex: [FirstName, Age]

Methods     :> Actions:Verbs                     => ex: [Add,Delete]

Events         :> Behaviors:Occurrences   =>ex: [Added,Deleted]

bool IsValidEmail(string email)
{
try {
var addr = new System.Net.Mail.MailAddress(email);
return true;
}
catch {
return false;
}
}

Blog WebMastered by All in One Webmaster.