... just ... (including ... perfect, ... the ... making ... YAGNI. but isn't this supposed to be one of the basic principles of TDD? We write something driven...
... true) = ... My point exactly - I was replying to an answer that said we wouldn't need the test f(fale, true, true) = false. The question was do I really...
... Just one guy's thoughts: I agree with some of the above, but not all. I believe that software defects are generally less costly to prevent than they are to...
I've tried this and I'm seeing a BadImageFormatException. Here's what I have done: - installed 2.2.2 (no problem) - modified the nunit-gui.exe.config to have...
Something that may not be obvious is that the <startup> section in the default nunit-gui.exe.config is actually commented out. Did you noticed that? You need...
Kevin, well! I feel suitably stupid. :-( That will teach me to use Notepad. When I uncommented that section of the config file things start to work. Thanks for...
Continuing the "a AND b AND c" thread, my actual case is that (a), (b) and c) are in fact other methods of the same object as f() is of. So this is what I...
... You could mock the other methods by deriving a mock-ish class from your class under test. Override a,b and c with whatever you need for verification that f...
... I think it might be helpful to have a real example rather than an abstract one. Ron Jeffries www.XProgramming.com Speculation or experimentation - which is...
Hi Avi, instead of overiding these methods for the purpose of mocking them, try to use composition instead of inheritance. Depending on your specific example,...
... I'm not sure I'd bother. Just test f() as it stands and leave some duplication (for now) in the tests. Then speculate about whether the relationship...
Hello All, Could any one explain me what is cost of change curve is? What does that phrase mean "Cost of Change". Does it mean that amount of money spent in...
... There is, including a port of spring. But it seems more complicated than necessary to me. In c# syntax... Config public static TheDependencyType...
We've all had that wonderful experience, at least once in our lives. It might be a team at work, it might be a volunteer community, perhaps it's an online...
Compsition/separate object for just these methods seems a bit of overkill for a simple (a and b and c) test. Unless your method f does more than this? The...
Hi, For web applications, we do two kinds of tests: acceptance tests over the GUI, using the excellent selenium (http://selenium.thoughtworks.com ) and for...
... Thanks, Dan. Actually, I emailed some of the Rails devs about this and they directed me to a little directive called use_transactional_fixtures that has...
... Sorry for the late reply. Your broader view of the issue is really interesting. How are your mocks introduced? I'm interested in anything you can share (or...
... Happy to oblige. For an academic treatment, see: http://pag.csail.mit.edu/pubs/test-factoring-ase2005-abstract.html ... I think Working Effectively with...
... Robert, I shouldn't try to write e-mail while still in post-lunch food coma, but what is the advantage of the properties in this case? You still have a ...
Hi, I am glad to be of any help. Hope one day I can also benefit from the amazing (from what I hear) ROR. Dan Bunea http://danbunea.blogspot.com On Mon, 03 Oct...
I'd really have to agree with Stephen that there's some hidden concept lurking in there between a, b, and/or c. But if we're not in a refactoring sort of mood,...
Hello all, I been slowly getting to grips with TDD through the past few weeks... After reading a fair amountI had developed the following code: Admin Class,...