<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Many thanks Benji and Paul.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Looks like simpler is better.  So when are mock objects useful?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Julius</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-----------------------------------------------------</DIV><DIV><A href="http://openwetware.org/wiki/User:Lucks">http://openwetware.org/wiki/User:Lucks</A></DIV><DIV>-----------------------------------------------------</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR><DIV><DIV>On Apr 24, 2007, at 4:45 PM, Benji York wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Julius Lucks wrote:</DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I would like to separate Grid tests from dependance on Tile so that later on down the road when I change the Tile class and break it, then my Grid tests don't start to fail for this reason.<SPAN class="Apple-converted-space">  </SPAN>Is this not a good way of thinking?</DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">It sounds ideal, but like so many ideals its cost is likely greater than the benefit.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I wouldn't worry about it.<SPAN class="Apple-converted-space">  </SPAN>One day your Tile and Grid tests start failing, you look at one or the other and realize pretty quickly that Tile is at fault, you fix Tile and Grid is happy too.<SPAN class="Apple-converted-space">  </SPAN>Not to mention that you making changes to Tile is what caused the tests to start failing, so you'll have a pretty good idea what happened.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">--<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Benji York</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://benjiyork.com">http://benjiyork.com</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>