Ooh, I only sent this message once. But who knows the misterious ways of yahoo :) Dan Bunea http://danbunea.blogspot.com On Wed, 31 May 2006 14:45:34 +0400,...
... Hi Thanks for your words Kelly and you're right, sometimes I don't sit back and appreciate how far I have come in such a short time but I'm always striving...
I have an object that needs to be created once in a process. So I have implemented the Singleton pattern with private ctors et all. All is fine. Now I get a...
can you make the appropriate instance getter protected virtual, that way you can inherit and override in your tests. Or just inherit from the singleton in your...
adam
adam.maillist01@...
Jun 1, 2006 10:19 am
16957
... one. Nice one. Here's what my sneaky brain came up with... public class EggFactory { private static Egg m_obSingleInstance; private EggFactory() {} public...
I assume that you are using Java in the post below. I think C# has the equivalent to all the stuff below or some other solutions to acomplish the same. ...
Gishu, well, in fact I didn't mean give up on TDD - I meant give up on using a unit-testing tool for this test. You can still do TDD but in an integration kind...
I'm with John on this issue. In my opinion, what you are trying to test does not fall under the umbrella of unit tests. So you would be better of using a...
... I recently did something similar with TDDing several threads accessing a shared resource, but the same idea should be applicable with seperate processes: ...
Hi, We manage to do these tests without compromising the scope of the methods using TypeMock.NET (www.typemock.net). It is quite simple you save the state of...
Avi, yes, I too use this "hands off" technique (for example, I work with a product which outputs a file - so I detect the file output). But it's weak TDD, not...
Hi all, I'm new to.. erm, well I'm trying to become new to TDD :), I've read some articles, and Kent Beck's book, but there are some ways to do things that...
You could Just Create One as Uncle Bob suggests: http://butunclebob.com/ArticleS.UncleBob.SingletonVsJustCreateOne Cheers, Trond Arve ... [Non-text portions of...
Hi, I have some puzzles about the interaction based test, i'm sorry that it is a bit lengthy, but i just want to make you to understand my situation easily. ...
Hi, When I used to develop in PHP, I used partial mocks to mock only certain methods of a particular test object. I found this handy because I could isolate...
... Hi John. What makes this "weak"? Is it any less direct than testing throuugh a test-framework? think of the spawned processes as an extended/proprietary...
I think what you are asking for is "intercept" in rMock: http://rmock.sf.net It works by subclassing the class you want to mock. Any method you don't record...
Hello Jeff.Yu, First off, you are not alone. Plenty of people have trouble with automating tests in the presence of a database. The problem is made even more...
... Will there be any code? Can you think of any ways it could be written wrongly? Ron Jeffries www.XProgramming.com Learn the principle, abide by the...
... Hi Eduardo. I think you should start by articulating some stories, and then translate them into tests. ... So there are several stories (I've extended...
The desire to improve one's self is important, and unfortunately somewhat rare these days. It is clearly NOT rare among those who post on this list, which is...
I do!!! This list. :-) -Kelly ________________________________ For now, I don't know what else to read instead. Jean. E-Mail messages may contain viruses,...
From: "Anderson, Kelly" <kanderson@...> ... Honestly! I don't read any "magazines." There is way more than enough quality online material to keep me...
... True, you can always create manual mocks. There is no situation where dynamic mocks is the only possible solution but I think that it is more convenient...