Darrell Norton's Blog [MVP]

Sponsors

The Lounge

Wicked Cool Jobs

News

  • Darrell Norton pic

    MVP logo

    View Darrell Norton's profile on LinkedIn

    Currently Reading:

    weewar.com

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Testing implementation of interfaces with .NET

Joe Walnes posted about Design by contract: testing implementations of interfaces.  Although the code shown is incomplete (there is no code that implements the CheeseMaker interface), it is understandable enough.  In .NET, thanks to NUnit and .NET attributes, the abstract CheeseMakerTest would not have to inherit from Testcase and you would not have to prefix each test with "test".  The class would just be decorated with the TestFixture attribute and the tests decorated with the Test attribute.


Posted Wed, Jul 23 2003 3:10 PM by Darrell Norton

[Advertisement]

Devlicio.us