The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Unit Testing

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Merill Fernando

Posts: 589
Nickname: merill
Registered: Sep, 2003

Merill Fernando is an MCSD in .NET and a Microsoft Certfied Trainer
Unit Testing Posted: Sep 8, 2004 9:51 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Merill Fernando.
Original Post: Unit Testing
Feed Title: Merill Fernando's Blog
Feed URL: http://www.merill.net/blogxbrowsing.asmx/GetRss?
Feed Description: Merill is a Software Architect at Business Technology Alliance. Merilll is an MCSD in .NET and a Microsoft Certfied Trainer. In this feed he will be regularly posting on the challenges faced when migrating from a Microsoft DNA architecture to Microsoft .NET
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Merill Fernando
Latest Posts From Merill Fernando's Blog

Advertisement

I was beginning to wonder if TDD would ever make it into mainstream development in Sri Lanka, but looks like it’s slowly happening. The following is my reply to a post on the .NET Forum

Based on my understanding so far unit testing works best for testing the Business Logic of your system. And the de facto tool for unit testing in .NET is nUnit. The most effective way to test your application using nUnit is to use a development methodology known as TDD. The following links should help you out.

nUnit - http://nunit.org/
'The' Book - Test Driven Development in Microsoft .NET
'The' Site - http://www.testdriven.com

 Questions that I had when starting out on unit testing.
How do I unit test the UI?
Practically I don't think it will be feasible to unit test the UI layer in an enterprise level application, but if your interested try these.
http://nunitforms.sourceforge.net/
http://nunitasp.sourceforge.net/

How do I unit test the Data Access Layer?
Here too I don't think you would really gain much from unit testing since you would pretty much be testing the database, network connections, etc. But I did find this article that can show you a way to do it.
MSDN: Unit Test Your .NET Data Access Layer

On the other hand you could also take a look at the NMock framework that allows you to mock objects that are resource intensive, etc. http://www.nmock.org/

Hope this helps.

Read: Unit Testing

Topic: The Administrator's Account in Windows XP Previous Topic   Next Topic Topic: GMane: read mailing lists via news readers

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use