Click here to Skip to main content
15,905,071 members
Home / Discussions / C#
   

C#

 
GeneralRe: A form from a dll Pin
c6jones72021-Mar-08 4:23
c6jones72021-Mar-08 4:23 
GeneralRe: A form from a dll Pin
c6jones72021-Mar-08 6:14
c6jones72021-Mar-08 6:14 
GeneralnUnit and TDD Pin
#realJSOP21-Mar-08 3:24
professional#realJSOP21-Mar-08 3:24 
GeneralRe: nUnit and TDD Pin
Luc Pattyn21-Mar-08 3:37
sitebuilderLuc Pattyn21-Mar-08 3:37 
GeneralRe: nUnit and TDD Pin
#realJSOP21-Mar-08 4:11
professional#realJSOP21-Mar-08 4:11 
GeneralRe: nUnit and TDD Pin
N a v a n e e t h21-Mar-08 3:39
N a v a n e e t h21-Mar-08 3:39 
GeneralRe: nUnit and TDD Pin
Wes Aday21-Mar-08 4:25
professionalWes Aday21-Mar-08 4:25 
GeneralRe: nUnit and TDD Pin
led mike21-Mar-08 4:40
led mike21-Mar-08 4:40 
Well not surprisingly I don't agree with the replies you have so far received.

John Simmons / outlaw programmer wrote:
It seems to me that it's only real purpose is to test discrete functions and classes

NUnit is for Unit testing and discrete functions, classes and modules are the primary purpose of Unit Testing. You can however expand that meaning and the use of NUnit to be pretty much whatever you want. However I don't believe that attempting to do system testing or regression testing with Unit test tools is a very productive way to do those types of testing.

John Simmons / outlaw programmer wrote:
Next, I understand that TDD is supposed to promote the building of tests before doing the actual coding

Yes, um, No, well maybe. It's like with any other process, they should be tailored to your individual environment and project.

John Simmons / outlaw programmer wrote:
but what about adding nUnit to existing code?

You don't "add" NUnit to your system code. If that is what you are doing you are doing it wrong.

John Simmons / outlaw programmer wrote:
It seems kinda pointless unless you're doing a ground-up redesign of your code.

No you can certainly write NUnit Unit tests for existing apps without modification to the application code base.

NOTE: We tend to put all NUnit tests in a "Test" project as part of the Solution.

John Simmons / outlaw programmer wrote:
I've been a programmer for almost 30 years

Oh dear, what happened to you? Poke tongue | ;-P Laugh | :laugh:

John Simmons / outlaw programmer wrote:
didn't really understand the reasoning behind "extreme programming", and think "agile programming" is the sure path to failure in a production product.

The rise in popularity, as with anything in our profession, causes much abuse and misuse due to assumptions that people know what it means. Mostly they don't. There was a common struggle regarding requirements. Some assumed you should have them all before starting development. We know of course know that is very very rare as requirements almost always constantly change. Agile was borne as an attempt to standardize the fact that requirements almost always change during the original development cycle of a project. There are many different prescribed agile processes and most of them share one common trait. That you tailor the process to your environment and project. Easy to type, not so easy to do. Wink | ;)

I have been a programmer for almost 20 years now and I have always done Unit tests. Not always test drive, and certainly not with tools like NUnit that make it a real breeze to do. I still don't do test driven in a Nazi like fashion but I agree that thinking or even writing test (in some cases) can be helpful to your thought process about designing and developing your project.

One of the most productive aspects of having Unit Tests as early as possible is that when requirements do change you can update the module and run all those tests to ensure you haven't broken anything.

Well you have probably stopped reading by now so I guess that's enough. Smile | :)


led mike

GeneralRe: nUnit and TDD Pin
Ennis Ray Lynch, Jr.21-Mar-08 4:51
Ennis Ray Lynch, Jr.21-Mar-08 4:51 
GeneralRe: nUnit and TDD Pin
Not Active21-Mar-08 5:10
mentorNot Active21-Mar-08 5:10 
GeneralRe: nUnit and TDD Pin
#realJSOP21-Mar-08 5:49
professional#realJSOP21-Mar-08 5:49 
GeneralRe: nUnit and TDD Pin
led mike21-Mar-08 6:45
led mike21-Mar-08 6:45 
GeneralRe: nUnit and TDD Pin
Not Active21-Mar-08 7:15
mentorNot Active21-Mar-08 7:15 
GeneralRe: nUnit and TDD Pin
Judah Gabriel Himango21-Mar-08 6:27
sponsorJudah Gabriel Himango21-Mar-08 6:27 
GeneralDateTime Setting A Specifed Week Pin
Zap-Man21-Mar-08 3:00
Zap-Man21-Mar-08 3:00 
GeneralRe: DateTime Setting A Specifed Week Pin
PIEBALDconsult21-Mar-08 4:49
mvePIEBALDconsult21-Mar-08 4:49 
GeneralVisual Studio Automation Model Pin
DanB198321-Mar-08 2:56
DanB198321-Mar-08 2:56 
GeneralRe: Visual Studio Automation Model Pin
led mike21-Mar-08 4:53
led mike21-Mar-08 4:53 
GeneralRe: Visual Studio Automation Model Pin
DanB198321-Mar-08 4:58
DanB198321-Mar-08 4:58 
GeneralRe: Visual Studio Automation Model Pin
DanB198321-Mar-08 6:34
DanB198321-Mar-08 6:34 
QuestionQuestion Regarding Combo box Pin
Krazy Programmer21-Mar-08 1:08
Krazy Programmer21-Mar-08 1:08 
GeneralRe: Question Regarding Combo box Pin
Luc Pattyn21-Mar-08 1:13
sitebuilderLuc Pattyn21-Mar-08 1:13 
GeneralRe: Question Regarding Combo box Pin
Krazy Programmer21-Mar-08 2:54
Krazy Programmer21-Mar-08 2:54 
GeneralRe: Question Regarding Combo box Pin
Luc Pattyn21-Mar-08 3:07
sitebuilderLuc Pattyn21-Mar-08 3:07 
GeneralAllocate disk spce before file copy Pin
poqeqw20-Mar-08 22:54
poqeqw20-Mar-08 22:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.