tag:blogger.com,1999:blog-1491832788620029067.post1912949548987815777..comments2024-03-25T02:15:57.630-07:00Comments on Sustainable Test-Driven Development: Upcoming Blog: Testing the Chain of ResponsibilityScott Bainhttp://www.blogger.com/profile/05410128716057054818noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1491832788620029067.post-19322431860668400192012-07-02T06:30:08.281-07:002012-07-02T06:30:08.281-07:00Thanks, Amir!
Another idea that came to my mind w...Thanks, Amir!<br /><br />Another idea that came to my mind while reading your answer is this: there is a probability that you'll get, let's say, two distinct chains of responsibility in your code. While the goal of patterns is not primarily implementation reuse, I expect jumping into having similar suites for both chains. So, following your thought that such a case suggests redundancy, Grzegorz Gałęzowskihttps://www.blogger.com/profile/07005911345134430356noreply@blogger.comtag:blogger.com,1999:blog-1491832788620029067.post-50959252887565667282012-07-02T02:49:05.085-07:002012-07-02T02:49:05.085-07:00To quickly answer your question (and we will go in...To quickly answer your question (and we will go into it at length in the blog), the CoR pattern is specified by a series of TDD tests [TS] (which are specifications, of course). You could start with this series of tests [TS] (becuase you know in advance that the problem is a Chain of Responsibility) or can start with one test, and add more until you have the complete suite [TS] and observe the Amir Kolskyhttps://www.blogger.com/profile/16309660408201670467noreply@blogger.comtag:blogger.com,1999:blog-1491832788620029067.post-68171055922772912812012-07-01T23:19:19.845-07:002012-07-01T23:19:19.845-07:00Hi, The question I always had was this: how does T...Hi, The question I always had was this: how does TDD lead to patterns (in particular the non-trivial ones)? I mean, I know that both TDD and patterns are about the same qualities, but where is the point where "sketching" the solution using test-first leads you to the conclusion "oh yes, this is going to be a chain of responsibility". Is it the result of what the test says or Grzegorz Gałęzowskihttps://www.blogger.com/profile/07005911345134430356noreply@blogger.com