Search the web
Sign In
New User? Sign Up
testdrivendevelopment · Test-driven Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 26789 - 26818 of 28238   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
26789
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...
Steve Freeman
smg_freeman
Offline Send Email
Dec 1, 2007
6:59 pm
26790
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...
Avi Naparstek
avinap77
Offline Send Email
Dec 2, 2007
7:43 am
26791
... What's helpful is to add features (and tests) to a working codebase incrementally [daily, hourly] without doing coding practices that break existing code -...
Keith Ray
attkeithray
Offline Send Email
Dec 3, 2007
5:15 pm
26792
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...
Brady Kelly
bradyklly
Offline Send Email
Dec 4, 2007
8:13 am
26793
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...
Brady Kelly
bradyklly
Offline Send Email
Dec 4, 2007
9:57 am
26794
... 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 Dinwiddie
gdinwiddie
Offline Send Email
Dec 4, 2007
2:43 pm
26795
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...
Brady Kelly
bradyklly
Offline Send Email
Dec 4, 2007
2:47 pm
26796
... 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)...
J. B. Rainsberger
nails762
Offline Send Email
Dec 4, 2007
4:18 pm
26797
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...
Kelly Anderson
kellycoinguy
Offline Send Email
Dec 4, 2007
4:34 pm
26798
... I want this too....
Alan Baljeu
alanbaljeu
Offline Send Email
Dec 4, 2007
4:45 pm
26799
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...
Brad Wilson
bradw_64
Offline Send Email
Dec 4, 2007
4:49 pm
26800
... 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...
Kelly Anderson
kellycoinguy
Offline Send Email
Dec 4, 2007
5:00 pm
26801
Take a look at these two posts: http://blog.benhall.me.uk/2007/04/mbunit-rowtest.html ...
Ben Hall
ben2004uk
Offline Send Email
Dec 4, 2007
5:00 pm
26802
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...
Ben Hall
ben2004uk
Offline Send Email
Dec 4, 2007
5:02 pm
26803
xUnit.net supports doing this algorithmically: public class MyFixture { public static DataTable MyDataProp { get { DataTable result = new DataTable(); ...
Brad Wilson
bradw_64
Offline Send Email
Dec 4, 2007
5:29 pm
26804
Hmm sounds interesting :) Will have a little play......... ... [Non-text portions of this message have been removed]...
Ben Hall
ben2004uk
Offline Send Email
Dec 4, 2007
5:34 pm
26805
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....
Chet Hendrickson
suechet
Offline Send Email
Dec 4, 2007
10:11 pm
26806
... I don't know of anything in NUnit that would directly support this. But parameterizing tests seems pretty straightforward: [TestFixture] public class...
Edmund Schweppe
ed_schweppe
Offline Send Email
Dec 4, 2007
10:43 pm
26807
... I found this, which looks pretty dang close to what I need: http://www.andreas-schlapsi.com/projects/rowtest-extension-for-nunit/ Thanks Andreas......
Kelly Anderson
kellycoinguy
Offline Send Email
Dec 5, 2007
5:56 am
26808
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...
Kelly Anderson
kellycoinguy
Offline Send Email
Dec 5, 2007
5:58 am
26809
... 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...
Sean McMillan
lahndo
Offline Send Email
Dec 5, 2007
8:03 am
26810
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...
Brady Kelly
bradyklly
Offline Send Email
Dec 5, 2007
10:24 am
26811
... 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...
J. B. Rainsberger
nails762
Offline Send Email
Dec 5, 2007
12:48 pm
26812
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...
Brady Kelly
bradyklly
Offline Send Email
Dec 5, 2007
1:01 pm
26813
... [snip] ... That's pretty close to what we do but, to prevent the red Lava Lamp for the acceptance tests we use the that I describe here:...
Kevin Lawrence
kevinwilliam...
Offline Send Email
Dec 5, 2007
4:39 pm
26814
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...
Kelly Anderson
kellycoinguy
Offline Send Email
Dec 5, 2007
8:27 pm
26815
... directly ... running ... iterated ... { "file1.xml", "file2.xml", "file3.xml" }; ... this ... this ... I created a data-driven NUnit add-in nearly two...
white_belly_99
Offline Send Email
Dec 5, 2007
8:28 pm
26816
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....
Kelly Anderson
kellycoinguy
Offline Send Email
Dec 5, 2007
8:43 pm
26817
... 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...
michaelgburton
Offline Send Email
Dec 5, 2007
8:50 pm
26818
... [ 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...
Edmund Schweppe
ed_schweppe
Offline Send Email
Dec 5, 2007
9:57 pm
Messages 26789 - 26818 of 28238   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help