<div>Hi Markus,</div>  <div>&gt; What is wrong with writing:<BR>&gt; IntervalTest &gt;&gt; testRemove<BR>&gt; self should: [(1 to: 3) remove: 2] raise: Exception</div>  <div>There's nothing wrong with your test, but I prefer more specific errors. <BR>Why? probably because I prefer to run my tests automatically and then write a structured report. <BR>I work with VW, and when I search senders of methods like 'subclassRes*', I find senders of "subclassResponsability", "subClassResponsability", "subClassResponsibility" and so on. it's difficult to stay clean with selectors, and it's worst with strings.</div>  <div>Once I had to check all the messages written in a server's log file. I had plenty of messages with the same meanning but with different sentences because each time a programmer had to log something (informations or errors), he wrote a specific string. </div>  <div>I assume that when you have a Class hierarchy for errors, people tend to look at the hierarchy instead of creating
 their own errors, and as most of the time your kind of error is roughly the same as one already written.</div>  <div>Regards,<BR>Pascal</div>  <div>Markus Gaelli wrote:<BR>Hi Pascal,</div>  <div>&gt; It would be easier to catch and therefore to test with a specific <BR>&gt; subclass of Exception.</div>  <div>What is wrong with writing:</div>  <div>IntervalTest &gt;&gt; testRemove<BR>self should: [(1 to: 3) remove: 2] raise: Exception</div>  <div>&gt; Besides, for the Interval&gt;&gt;remove: example, the code would have been:<BR>&gt;<BR>&gt; Interval&gt;&gt; remove: anElement<BR>&gt; "elements cannot be removed from an Interval"<BR>&gt; ^self shouldNotImplement</div>  <div>So I need to browse the method and cannot see directly anymore what <BR>is going in the label of my walkback-window?</div>  <div>&gt;<BR>&gt; Mind you, even in VW you have these calls of error:, and <BR>&gt; shouldNotImplement is implemented that way...<BR>&gt; But why not implementing shouldNotImplement
 like:<BR>&gt;<BR>&gt; Object&gt;&gt; shouldNotImplement<BR>&gt; ^ShouldNotImplementError raise</div>  <div>Why?</div>  <div>Cheers,</div>  <div>Markus<BR><BR></div><p>
                <hr size=1><font face="Arial" size="2">To help you stay safe and secure online, we've developed the all new <a href="http://us.rd.yahoo.com/mail/uk/taglines/default/security_centre/*http://uk.security.yahoo.com/"><b>Yahoo! Security Centre</b></a>.</font>