NUnitAsp v1.5.1 is now available for download. NUnitAsp is a tool for test-driven development of ASP.NET web pages. Version 1.5 includes a modest collection of...
Hi all, I am new to the list! After having put off getting into TDD, I have finally installed NUnit and ordered the book "Test Driven Development in .NET", by...
I have a simple class that represents X-Y point, that implements ToString() that yields string-representation of the object. How do I test the ToString()...
... Test the behavior you want to see. 1. Set up instances of the class and assert the expected toString() results. 2. If the results should vary based on some...
Its not quite the problem as far as I can tell and have had experienced. Its not that you have to localize the actual object, the problem is that if you change...
To me Option 2 seems also the most reasonable. I would also try to make a point that if it is possible to change the X-T point class, so that Locale ...
I would tend away from letting the point class know about a locale, it doesn't really care. The only thing that cares is the string creation and in C# if you...
Sorry, I have been too long in Java world and forgot about the fact that we maybe talking about a completely different Language. In either case, I am sure you...
Hi everyone, I was curious to know about what it would take to be an application architect. I am currently a VB/ASP/SQL developer, and am looking to move up on...
I thought I was doing good writing tests and then I hit a roadblock. I'm hoping someone can help me here: I'm creating an application that allows the user to...
On Wed, 01 Dec 2004 19:10:15 -0000, Jill Coleman ... The industry has no standard for titles. An "application architect" might be anything from a "senior"...
Is it possible that you extract some form of abstraction that wllows you to popup dialog boxes. You then can create a mock implementation of the abstraction...
This is an interesting question. I think that main thing that it takes is experience with building allot of different types of systems or possible allot of...
... an ... First of all, you have to be self-righteously willing to criticize and reject your coworkers' code again and again until it is 'correct'. ;) But...
... Originally, the toString() method in every Java Object was meant as a debugging aid, not as something that would build a string representation for an end...
... Check out Martin Fowler's article "Who Needs an Architect?", available at http://www.martinfowler.com/ieeeSoftware/whoNeedsArchitect.pdf It describes how...
Do you really want to test the menu? Isn't it easy to hook it up to something? Or test that is is hooked up, rather than test the invocation? And is it really...
It is strange what kind of reminders we need. It could come from the fact that I don't do Java. I have ignored the ToString() in .NET, now it's time to look...
Oops. I forgot to mention it's a .NET application. Thanks for the link to NUnitForms - I wasn't aware of it (and all the other NUnit addons on SourceForge!). ...
On Thu, 02 Dec 2004 21:45:34 +0100, "Thomas Eyde" <teyde@...> said: <snipped> ... Actually, it does help in the sense that I'm not real happy with the...
All that aside, you simply need to test what it will do (assuming TDD here). If you are going to use toString to print {X,Y} in human readable format, then...
I'm not sure how to TDD this: my application will have two parts (to keep the story simple) - Gatherer and Displayer. Gatherer gathers information and...
Michael Simpson December 1, 2004 12:58 PM ... Why? Why not Just Test It? What smells bad to me is all the faking and mocking folks still do to avoid automating...
... Gatherer ... Testing by simulating GUI events is a pain, and it is error prone. Try to avoid it by how you structure the object and view. The object...
Paul, thank you for the clear description. I see how this will work, except for the events. ... The mock can fire events for Displayer to respond to. I can add...
..and Microsoft has this to say: http://msdn.microsoft.com/architecture/journal/default.aspx?pull=/library/en-us/dnmaj/html/greatarchitect.asp --paul ... ...
well, if you're using NMock, you can do the following: interface IGatherer { event EventHandler Changed; } [Test] void testEvent() { NMock foo = new...
Why can't you move the event raising invocation to a method on Gatherer and call that in your test? You could make it protected so that a stub can reach it,...