<div dir="ltr"><div>Hi,</div><div> the current impl of ExtractMethod does not find this two pieces of code as duplicates:</div><div>------</div><div>salesToAdaLovelace := salesSystem salesMadeTo: adaLovelace.<br>   self assert: 1 equals: salesToAdaLovelace size.<br>       self assert: 1 equals: (salesToAdaLovelace count: [ :aProduct | aProduct = self combo1 ]).<br>--------<br>  salesToAlanKay := salesSystem salesMadeTo: alanKay.<br>   self assert: 1 equals: salesToAlanKay size.<br>   self assert: 1 equals: (salesToAlanKay  count: [ :aProduct | aProduct = self combo2 ])</div><div>----</div><div> The attached cs makes the ExtractMethod to find them so it can be extracted this way:</div><div>self salesMadeBy: adaLovelace are: [ :aProduct | aProduct = self combo1 ].<br>self salesMadeBy: alanKay are: [ :aProduct | aProduct = self combo2 ]</div><div><br></div><div>Cheers!</div><div>Hernan</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal"><span style="font-weight:bold">Hernán Wilkinson</span><br>Agile Software Development, Teaching & Coaching</span></font></span></span></strong></span></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Phone: +54-011</span></font></span></span></strong></span><font face="tahoma, sans-serif" size="2">-4893-2057</font></div><div style="font-size:12.8px"><strong style="font-family:tahoma,sans-serif;font-size:xx-small"><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Twitter: @HernanWilkinson</span></font></span></span></strong></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">site: <a href="http://www.10pines.com/" style="color:rgb(17,65,112)" target="_blank">http://www.10Pines.com</a></span></font></span></span></strong></span></div><div style="font-size:12.8px"><font face="tahoma, sans-serif"><span style="border-collapse:collapse">Address: Alem 896</span></font>, Floor 6, Buenos Aires, Argentina</div></div></div></div></div></div></div></div></div>