Exactly. I tend to think of stubs as pre-conditions and mocks as post-conditions. S. ... Steve Freeman http://www.mockobjects.com Winner of the Agile Alliance...
Hi Damien. ... Like "powerdude" said - you only need to define the getters on the stub view. The IView interface (and it's concrete implementor) will only...
... What's helpful is to add features (and tests) to a working codebase incrementally [daily, hourly] without doing coding practices that break existing code -...
I'm about to move hard-coded, dirty prototype, C# code for custom serialising objects into a helper class that serializes object members based on attributes...
Sorry guys, I've been a bit out of TDD for a while now, and would appreciate some input on this. I'm implementing a TDD approach to all new work on a legacy...
... Either way, you do the arrange at test writing time, do you not? If I understand your meaning correctly, you've got classes with attributes that affect...
George, that is what I mean, it's just as a beginner it seems a bit weird to be doing the arranging without any run time actions. I'm sure I'll get over it...
... Hm. I don't understand that statement: what's the difference between design and development? What we write code, it's all design, isn't it? ... J. B. (Joe)...
I have a set of XML files that I want to test for internal consistency. What I want to do is to create a set of NUnit tests to run against each file. Is there...
Many test frameworks on the .NET platform have this capability. In MbUnit, it's [RowTest] and [Row]. In xUnit.net, it's [TheoryViaXxx]. The principle is like...
... The only problem with this approach is you can't build up the list algorithmically. In my example, I would ideally want to build up the list by scanning a...
Ideally then you want to do something like: [RowTest] [Array(Delegate { // get all my data and return it as an array }] Then the delegate can build up the list...
xUnit.net supports doing this algorithmically: public class MyFixture { public static DataTable MyDataProp { get { DataTable result = new DataTable(); ...
Lining Up the Second Rail Chet Hendrickson December 4, 2007 With Ron out of town for the rest of the week, it falls to me to continue our Ruby/Rails quest....
... I don't know of anything in NUnit that would directly support this. But parameterizing tests seems pretty straightforward: [TestFixture] public class...
... I found this, which looks pretty dang close to what I need: http://www.andreas-schlapsi.com/projects/rowtest-extension-for-nunit/ Thanks Andreas......
On Dec 4, 2007 3:43 PM, Edmund Schweppe ... Edmund, you are absolutely right that you could do it this way. The problem with this is that it bails on the first...
... In the past, I've found no value in making a distinction between "unit" and "integration"[0] tests -- I just make whatever tests are useful to me for...
Sorry for the repeat; I asked about this yesterday, but was rather verbose and, I suspect, not nearly clear enough as to what I want to test. I want to test...
... I'm surprised by that statement. You really aren't permitted to write a one-method interface and a one-line implementation? If not, then yes, I guess you...
I'm allowed to write what I want, but it's no one liner. I don't feel implanting a dependency interface just for this test would be a very good idea, so I'd...
I'm developing an NUnit extension (relating to my question from yesterday), starting from Andreas Schlapsi's code for the [RowTest] attribute. It's really nice...
... directly ... running ... iterated ... { "file1.xml", "file2.xml", "file3.xml" }; ... this ... this ... I created a data-driven NUnit add-in nearly two...
Interesting blog, thank you for taking the time to write that up. I am taking a similar, but slightly different approach. Will let you know when it's done....
... of ... asserting, ... there any ... If you've ever done an is-a test, then you've done the same kind of arranging. Is-A tests are occasionally useful...
... [ chop ] ... Ah, I didn't get that the first time through. You're right; what I suggested doesn't do that. Since you're already exploring ways to have a...