I downloaded Uncle Bob's bowling kata slides yesterday and started to practice. (http://butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata)
During the kata - when you get to a point where you are calculating the score I ended up with some code that looked like
for (int frame = 0; frame < 10; frame++)
score += 10 + _rolls[frame + 1] + _rolls[frame + 2];
I expected to be able to highlight the part that says "_rolls[frame + 1] + _rolls[frame + 2]
" and extract method
. However this feature is disabled when this block of code is selected.
I'm using Visual Studio 2010 Ultimate and writing the kata in C#. I also have the first EAP build of 5.1
JetBrains ReSharper 5.1 Full Edition build 5.1.1700.249 on 2010-05-20T16:48:06
JetBrains ReSharper 5.1 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2010 JetBrains, Inc.