Skip to search.
testdrivendevelopment · Test-driven Development

Group Information

  • Members: 3502
  • Category: Software
  • Founded: Feb 7, 2002
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
Blog: Thinking about Assert Syntax   Message List  
Reply Message #18977 of 34997 |
I've been using the development of NUnitLite (coming soon!) as an excuse to
try out alternatives to the standard NUnit syntax for Asserts...

http://nunit.com/blogs/?p=37

Your comments either on the list or on the blog will be appreciated.

Charlie





Thu Aug 31, 2006 3:01 am

cpoole98370
Offline Offline
Send Email Send Email

Message #18977 of 34997 |
Expand Messages Author Sort by Date

I've been using the development of NUnitLite (coming soon!) as an excuse to try out alternatives to the standard NUnit syntax for Asserts... ...
Charlie Poole
cpoole98370 Offline Send Email
Aug 31, 2006
3:01 am

Hi Charlie, ... Personally, I'm fond of the NMock-style interpreter methods. They make for very expressive code, certainly much more than an Assert.IsTrue. ...
Brandon Byars
brandon.byars Offline Send Email
Aug 31, 2006
4:01 am

Hi Brandon, ... Exactly. ... Actually, it's implemented. Writing tests and code is the only way I know to think about code. :-) ... It's certainly possible to...
Charlie Poole
cpoole98370 Offline Send Email
Aug 31, 2006
6:12 am

Hello Charlie, thanks for sharing your thoughts. On Thursday, August ... I have some vague recollection that implying the operand and cascading comparators...
Ron Jeffries
ronaldejeffries Offline Send Email
Aug 31, 2006
8:11 am

... Can we use two arguments - Is.Between(5, 10) ? (Though it's not 100% clear to me whether 5 is "between" 5 and 10.) ... "UnrequisitedConstraint"?...
William Wake
wwake2 Offline Send Email
Aug 31, 2006
9:56 am

... It's a bit like currying in Haskell. http://www.haskell.org/hawiki/Currying Maybe it will bring about enlightenment, maybe it won't. It's an interesting...
Thomas Stegen
Thomas.Stegen@... Send Email
Aug 31, 2006
10:04 am

I do something similar in Rhino Mocks, and the state in between may be invalid. This is checked at the next stage where a valid operation is required. In this...
Ayende@...
ayende_tdd Offline Send Email
Aug 31, 2006
10:37 am

... Charlie, For myself, I don't find it particularly onerous to put a message in my Asserts if I think what's being testing won't be obvious from the code. ...
Brad Stiles
bradley.stiles@... Send Email
Aug 31, 2006
12:22 pm

... By an odd coincidence, I have been playing with the same thing today in JavaLand. I was using the inherited helper methods approach of JMock and not liking...
Kevin Lawrence
kevinwilliam... Offline Send Email
Aug 31, 2006
5:02 am

Hi Kevin, ... This has been in the air, I think. Lots of people have been writing about using the JMock approach for unit tests. I've always felt the same way...
Charlie Poole
cpoole98370 Offline Send Email
Aug 31, 2006
6:15 am

Charlie, is it possible to keep the simple form at least. Adding more expressive would be great - but one of the great strengths of Nunit is that it's really...
Donaldson, John (GEO)
geo_johnfr Offline Send Email
Aug 31, 2006
5:55 am

I've thought about that. NUNitLite is intended to be embedded right in your app, like CppUnitLite. So the old forms could be redefined in terms of the new ones...
Charlie Poole
cpoole98370 Offline Send Email
Aug 31, 2006
6:26 am

Hello Charlie, thanks for the contribution quoted here. On ... Interesting. Looks like stuff I would have done N years ago for large N, when I was flexing my...
Ron Jeffries
ronaldejeffries Offline Send Email
Aug 31, 2006
7:40 am

... The english-like-ness, for me, is but a pleasant side effect. The OO problem that Assert.That(Object actual, Constraint constraint) solves is more...
Kevin Lawrence
kevinwilliam... Offline Send Email
Aug 31, 2006
8:08 pm

Hi Kevin, ... I've been giving some thought as to what to call these things... NMock started calling them Constraints - I guess from JMock - and has now gone...
Charlie Poole
cpoole98370 Offline Send Email
Aug 31, 2006
9:32 pm

Hi Charlie, ... It reminds me of the Specification pattern written up by Eric Evans and Martin Fowler (see http://martinfowler.com/apsupp/spec.pdf). The ...
Brandon Byars
brandon.byars Offline Send Email
Sep 1, 2006
2:36 am

After all this wonderful tech/philosophical discussion it seems to me we should start calling it NUnitHeavy. ;-) John D....
Donaldson, John (GEO)
geo_johnfr Offline Send Email
Sep 1, 2006
7:19 am

... In rMock we call them expressions. Expectation in rMock is an expectation setup on a mock/stub/intercepted object. Expressions are composed of other...
Joakim Ohlrogge
j0hlrogge Offline Send Email
Sep 7, 2006
10:17 am

Hello Kevin, thanks for your email. On Thursday, August 31, 2006, at ... What I don't get is what can be said in this way that can't be said in a standard...
Ron Jeffries
ronaldejeffries Offline Send Email
Sep 1, 2006
2:25 am

Hi Ron, ... The primary benefit I see from using Constraints over boolean expressions is built-in support for giving explicit error messages--messages which...
Brandon Byars
brandon.byars Offline Send Email
Sep 1, 2006
2:57 am

Hello Brandon, thanks for your ideas. On Thursday, August 31, 2006, ... I see the message benefit, yes, though I don't value it too highly myself, but that...
Ron Jeffries
ronaldejeffries Offline Send Email
Sep 1, 2006
3:16 am

Hi Ron, ... Let's say that we want to assert that a collection of customer objects is sorted by name. Of course, we could write code that goes through the...
Charlie Poole
cpoole98370 Offline Send Email
Sep 1, 2006
3:00 am

Hello Charlie, thank you for your email. On Thursday, August 31, ... So who's going to write AreInOrderByName()? I'd think that's me, right? So today I can say...
Ron Jeffries
ronaldejeffries Offline Send Email
Sep 1, 2006
3:13 am

Hi Ron, ... Right, or somebody in your team. ... No. You can only write the part of the code that makes the test and returns true or false. You can't write the...
Charlie Poole
cpoole98370 Offline Send Email
Sep 1, 2006
3:35 am

Hello Charlie, thanks for the contribution quoted here. On Thursday, ... yes, I get the error message thing. I'm not all that concerned about it, since if I...
Ron Jeffries
ronaldejeffries Offline Send Email
Sep 1, 2006
4:08 am

I think you just said "We should make something that returns a Constaint object". :) ... [Non-text portions of this message have been removed]...
Brad Wilson
bradw_64 Offline Send Email
Sep 1, 2006
5:04 am

Hello Brad, thank you for the observation. On Friday, September 1, ... I thought I had just said "We should make a Result object, and add one method to Assert...
Ron Jeffries
ronaldejeffries Offline Send Email
Sep 1, 2006
9:15 am

Hi Ron, ... Well, its slightly different. Most people seem to have implemented constraints with a boolean and a string operation. You call the boolean...
Charlie Poole
cpoole98370 Offline Send Email
Sep 1, 2006
11:20 am

Hello Charlie, thanks for the contribution quoted here. On Friday, ... Yes. I have some vague concern about the order of execution. I'm mumbling something...
Ron Jeffries
ronaldejeffries Offline Send Email
Sep 1, 2006
3:50 pm
First  | < Prev  |  Next > Last 
Advanced

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