Re: [testdrivendevelopment] "bottom-up" TDD and common behaviors
"Ron Jeffries" <[email protected]> Mon, 2 Dec 2019 08:29:57 -0500
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_6949BD27-2F6C-4295-A6C4-4DDC6465FBE8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Yes. And if I didn't mind modifying a field, testing it that way is OK. If I knew the context I'd have a better idea but as it stands I'm thinking= my object must know whether it can modify fields or not. I suppose a modif= yField operation might return T/F ... R > On Dec 2, 2019, at 8:18 AM, Avi Kessner <[email protected]> wrote: >=20 > Best to test to behaviour, not implementation/capability, I think. Ron Jeffries ronjeffries.com <http://ronjeffries.com/> If it is more than you need, it is waste. -- Andy Seidl -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#35794): https://groups.io/g/testdrivendevelopment/mess= age/35794 Mute This Topic: https://groups.io/mt/64491946/3268755 Group Owner: [email protected] Unsubscribe: https://groups.io/g/testdrivendevelopment/leave/6156322/74455= 6386/xyzzy [[email protected]] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --Apple-Mail=_6949BD27-2F6C-4295-A6C4-4DDC6465FBE8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset= = =3Dus-ascii"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mod= e: space; line-break: after-white-space;" class=3D"">Yes. And if I didn't m= ind modifying a field, testing it that way is OK.<div class=3D"">If I knew = the context I'd have a better idea but as it stands I'm thinking my object = must know whether it can modify fields or not. I suppose a modifyField oper= ation might return T/F ...</div><div class=3D""><br class=3D""></div><div c= lass=3D"">R<br class=3D""><div><br class=3D""><blockquote type=3D"cite" cla= ss=3D""><div class=3D"">On Dec 2, 2019, at 8:18 AM, Avi Kessner <<a href= = =3D"mailto:[email protected]" class=3D"">[email protected]</a>> wrote= :</div><br class=3D"Apple-interchange-newline"><div class=3D""><span style= =3D"caret-color: rgb(0, 0, 0); font-family: ArialMT; font-size: 18px; font= -style: normal; font-variant-caps: normal; font-weight: normal; letter-spac= ing: normal; text-align: start; text-indent: 0px; text-transform: none; whi= te-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-d= ecoration: none; float: none; display: inline !important;" class=3D"">Best = to test to behaviour, not implementation/capability, I think.</span></div><= /blockquote></div><br class=3D""><div class=3D""> <div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; = text-align: start; text-indent: 0px; text-transform: none; white-space: nor= mal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-= wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white= -space;" class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: norm= al; orphans: auto; text-align: start; text-indent: 0px; text-transform: non= e; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-strok= e-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line= -break: after-white-space;" class=3D""><span class=3D"Apple-style-span" sty= le=3D"border-collapse: separate; color: rgb(0, 0, 0); font-variant: normal;= letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webk= it-auto; text-indent: 0px; text-transform: none; white-space: normal; widow= s: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-e= ffect: none; -webkit-text-stroke-width: 0px;"><div style=3D"word-wrap: brea= k-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" c= lass=3D""><span class=3D"Apple-style-span" style=3D"border-collapse: separa= te; color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line= -height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; te= xt-transform: none; white-space: normal; widows: 2; word-spacing: 0px; bord= er-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-str= oke-width: 0px;"><div class=3D""><br class=3D"Apple-interchange-newline">Ro= n Jeffries</div><div class=3D""><a href=3D"http://ronjeffries.com" class=3D= "">ronjeffries.com</a></div><div class=3D""><div class=3D"">If it is more t= han you need, it is waste. -- Andy Seidl</div></div></span></div></span></d= iv></div> </div> <br class=3D""></div></body></html> <div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div> <hr> Groups.io Links:<p> You receive all messages sent to this group. <p> <a target=3D"_blank" href=3D"https://groups.io/g/testdrivendevelopment/mes= sage/35794">View/Reply Online (#35794)</a> | <a target=3D"_blank" href=3D"mailto:[email protected]?subj= ect=3DRe:%20Re%3A%20%5Btestdrivendevelopment%5D%20%22bottom-up%22%20TDD%20a= nd%20common%20behaviors">Reply To Group</a> | <a target=3D"_blank" href=3D"mailto:[email protected]?subject= = =3DPrivate:%20Re:%20Re%3A%20%5Btestdrivendevelopment%5D%20%22bottom-up%22%= 20TDD%20and%20common%20behaviors">Reply To Sender</a> | <a target=3D"_blank" href=3D"https://groups.io/mt/64491946/3268755">Mu= te This Topic</a> | <a href=3D"https://groups.io/g/testdrivendevelopment/post">New Topic</a>= <br> <br> <a href=3D"https://groups.io/g/testdrivendevelopment/editsub/3268755">Your= Subscription</a> | <a href=3D"mailto:[email protected]">Contact Group Own= er</a> | <a href=3D"https://groups.io/g/testdrivendevelopment/leave/6156322/7445563= 86/xyzzy">Unsubscribe</a> [[email protected]]<br> <div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div> --Apple-Mail=_6949BD27-2F6C-4295-A6C4-4DDC6465FBE8--