I seem to recall reading somewhere that NUnit DynamicMocks can't handle ref our out method params. I'm having problems doing exactly this in my unit tests (I...
Nowadays, i am reading nice articles about unit tests with Python and Jython. Is there anyone who have best unit test practices with this languages? thanks...
The stubs/mocks used when testing let me test the process without using the complicated objects, but the stubs aren't related in any way to the real objects....
Jeff, First thing I would do is lose the Proxy concept, or at least the term - I dont see Proxy in this code at all. You have two interfaces depended on by ...
And this is because the real objects do not implement an interface (which you stubs/mocks would also implement)? ... [Non-text portions of this message have...
What Steve is suggesting is that you extract an interface from your "complicated objects". The complicated objects implement this interface, as do your...
Hi, Recently, I've begun to enjoy mocking objects in my unit tests, due to the flexibility and the fine grained ability to test what an object does internally....
Q: "Nowadays, i am reading nice articles about unit tests with Python and Jython. Is there anyone who have best unit test practices with this languages?" A: A...
I've used this pattern quite a few times. change: ... data = StaticReference.getData(); ... to: ... data = getData(); ... protected Data getData() { return...
Ah I see... so in this case you'd use a partial mock... inheriting from the class and then mocking out the methods you need to return a mock object. A lot...
Glad you liked that -- I've used it a lot in the past. (In fact I used it to do a refactoring right after I wrote that message; good timing.) Now though I've...
Hi Robert, Because I wrote the nunit mock package for nunit internal use, I never wrote any docs. Of course, since it was later suggested that people who...
Sounds like me. "YAGNI" in action - if it is for internal use, no one except you would need the docs, right? So what do people use? NMock? Custom mock...
... I'm using Python, wxPython and TDD to develop Task Coach. It has roughly 1200 unit tests that run in about 20 seconds. What do you want to know? Cheers,...
Those seem to be the two favorites. :-) I also hear RhinoMocks mentioned but I haven't tried them. There's nothing intrinsically wrong with using our mocks,...
This is not partial mocking. You are mocking the entire collaborator. Partial mocking is where 'MockData' would encapsulate the real data and mock out only a...
Premessage note :- I fully understand and endorse the view that TDD is more about improving the design of programs than finding bugs. (It's also pretty nifty...
A lot of the bugs that people "do not care about" are ones where the program computes a value that the user just assumes is correct (after all, it was produced...
First, can you really trust a CS associate professor in a tuxedo? ;-P To which specific paper are you referring? To answer your question, I think if your tests...
It's an interesting body of work, indeed. My first impression on the actual question is that "stable, mature" software is a synonym for "legacy" software,...
... It's certainly a good thing, and it's for precisely this reason that I think xUnit frameworks should have mock support built in. -- Regards, Tim Haughton ...
Michael Features calls 'extract and over ride factory method' and there's a similar 'extract and over ride getter' ... Its a very cool technique. However, it...
Probably a naïve question, but a language, such as Iron Python, implemented on the .NET framework, ought to produce assemblies which ought to be testable by a...
In the technical sense, all .NET assemblies are comprised of IL + Metadata. I'm guessing that the IronPython tool does as well as that is what is required by...
Sam Gentile
sgentile@...
Feb 3, 2006 2:10 pm
14525
... Did they do a thorough and rigorous Big Requirements Up Front? If the goal is to write the 20% of potential features that generate 80% of the profit, then...
From: "Donaldson, John (GEO)" <john.m.donaldson@...> ... In principal, this is correct. However, there is currently no way to build and export a "real" CLR...