... Sorry for jumping in into the middle of the discussion, but wouldn't it be simpler to have a test called CustomersAreInOrderByName with a single assert? //...
... I find myself writing methods like assertInstanceOf and assertIsoModels which will, when the underlying assertion is false, produce decent diagnostic...
Hi, We have some experience with database dependent automated tests in .NET. The way we do it, is somehow like: 1) reset database to a preknown state 2\...
I think it looks better with the comment as the first parameter, but I usually don't use comments. It's easier to use smaller tests with better names. -- ...
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...
Hello Johan, thank you for the email quoted here. On Friday, ... It might. I'm struggling with why we'd want the things being talked about here. Is that...
Hi Ron, ... Well, its slightly different. Most people seem to have implemented constraints with a boolean and a string operation. You call the boolean...
... I'd forgotten about the implicit operators. I tried one to convert int to Constraint. It was fine with Assert.That(7), but it didn't induce the types on...
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...
Hi Bill, ... Yes, they only work when the type of an argument is required to be converted, not for types in general expressions that already have a reasonable...
Hi Ron, ... Yes, that definitely comes up if you would prefer not to have the arguments evaluated first, as in the hypothetical Assert.That( sqrt(-2), Throws(...
Hi All, Continuing to riff on alternative ways of expressing things in NUnitLite. This time it's Expected Exceptions... http://nunit.com/blogs/?p=38 Charlie...
... While the constraints thing is kind of interesting, I think I would rather encourage people to extend their unit-test framework when they need to. For...
Hi Keith, ... To be clear: that's the main motivation for it. By creating a new constraint, you can use the Assert.That with it without changing anything in...
... I sometimes find myself writing little methods like assertCustomersAreInOrderByName() and let the method do it's own asserts, with appropriate messages if...
Hi George, ... Every project should have a little library of domain-specific methods. The difficulty is that you end up duplicating a lot of code - either...
I've been following this discussion with interest. I've always created a TestBase class from which all my test classes for the current project derive. In...
Hi all. Lately I've been doing a lot of graphic processing stuff, and have found myself writing custom assertions to verify various graphic results - things...
Hi Ken, ... That's a best-practice as far as I'm concerned. ... This sort of thing gets a bit messy, the framework has to make a lot of assumptions about...
Hi All, I'm looking on advice as to what should be the default behavior when asserting equality of arrays of different shapes. NUnit currently only handles...
If you were comparing two objects of different types, but each object had the same fields, would you consider them the same? Even if you could figure out a...
... I don't think tests should be of "the intention of the code". One main point of tests is to find places where the intention of the spec is not clear, and I...
Moz
list@...
Sep 3, 2006 4:15 am
19036
Hello Robert, thanks for your email. On Saturday, September 2, 2006, ... Actually, in a decent duck-typing language, the name sets being equal and the values...
I don't know of a testing framework for pure graphical testing in .Net. However, we wrote our own C# UI control library so we could effectively test the rich...
Hi Robert, ... Clearly they are, which is why I'm asking the question. Heretofore, we have applied the standard equality definition - the one you are saying is...
Hi John, ... Fortunately, this isn't a choice the framework writer has to make, since we typically ask one object if it believes it's equal to the other. If...
Hi Moz, ... It's probably because it's late, but I'm not sure from the above which side you're coming down on. If you mean that this is a slippery slope and we...