Hi Dave! ... I'm fairly certain that there's a similar story in one of Weinberg's books. If I recall correctly, it involves a turkey and putting a sieve over...
Hi guys, is there a hard and fast rule as to where mock objects are applicable. Ehat I mean is that I've seen them being created as part of the actual test...
Hi guys. I'm new to the group and TDD in general. I was wondering, is there any hard and fast rule regarding where mock objects should be used. Currently I've...
There has been this idea in my mind for a while and I am not sure if there is anything to it... What if we could write code only by writing tests with the help...
... Use mock objects only when testing against real objects is painful. At a high level my approach is simple. 1. Identify objects that are painful to test. 2....
... Well, I say with the most respect and love that in general, I think you're nuts. Well, maybe not. But in general, I believe that the problem is somewhere...
... I think that there is an odd blurring of lines between mock objects and stubs. IIRC, the focus of the original mock object paper was on endo-testing. That...
The final release of NUnit 2.1 is now available for download at http://nunit.sourceforge.net. This release has a number of improvements, most notably that it...
Hi, On the whole NUnitasp is a very effective tool for unit testing. I did mange to cross the initial barriers but am still stuck with some problems :) Wud...
... JB can you explain point 3? I once heard somebody else on here mention using mocks and then getting them out of their code, but I never saw the reason why....
... As a general rule I prefer instantiating Mocks outside of the code being tested because instantiating Mocks inside the code being tested risks bugs because...
... Here is a snippet from my book -- something I wrote yesterday that may shed some light on my point of view. If not, then perhaps I need to write more. I'm...
... I don't do step three. Unit tests are really good at not only showing you that something has broke, but also showing you exactly where. If your test uses...
Pierre, You are not taking too big of a leap when you suggest that IDEs perhaps via a plug-in could make a test pass the simplest way possible. For example,...
The next Phoenix eXtreme Programming User Group meeting will be held on Monday, July 14th. This is an informal gathering of Phoenix area developers and project...
I am just getting started with C#, .NET, and Nunit. In our old C++ app, we had a special build of our application that would run all the tests. The tester ...
Hi Shilpa, NUnit is the test framework which NUnitAsp builds on. If you are using NUnitAsp, then you are also using NUnit. There's nothing in NUnit to do what...
... I think those two are the same thing, perhaps just viewed differently. The former is a "symptom" view and the latter is the "cause" view. -- J. B....
Please explain. Two questions: 1) How do you test isolated functionality in a method without mock objects? Ie. If one layer calls down to the database layer,...
David, There have been several long threads about this. I think most people create one or more test assemblies which refer to the assemblies containingthe...
... Whichever one changed between the last time the tests passed and the time when the tests fail. As long as I'm taking very small steps and running the tests...
Edmund Schweppe
schweppe@...
Sep 2, 2003 8:33 pm
5088
Separate test project. The tests are built into a separate assembly from the assemblies being tested. Steve Steven A Smith ssmith@... ...
... The problem is actually extremely hard (although some parts could probably be automated); however, for a related idea, see Programming By Example:...
... I generally keep them in the test code. I don't often need to create them, but when I do it's typically because there's some resource that I can't access...
... I remove dependencies where possible. ... Not necessarily. Let us test making a domain object from a ResultSet. To test this behavior I really only need...
Hi Charlie, Thanks for trying to help me. :) But either Iam a little too new to Nunit or a little too slow to pick it up. I have maybe not implemented your ...
... I believe you are right. So have some other people. Not quite like you think of it, but it's a combination of Evolutionary Programming and Test Driven...
... Genetic programming works sort of like this. I'm more familiar with the general genetic algorithm, but I've found with them you never get 100% success...
Okay, so you suggest using the actual production objects themselves and not mock objects--which are very similar approaches to me. Question: How would you test...
This is a reminder that tomorrow evening (Thursday) from 6-8PM, XPSD will be hosting a presentation on how to use Test Driven Development with Graphical User ...