ReSharper Jedi – FizzBuzz in under 4 minutes

Video (FLV/Flash, 3:55,06, CSA 0:00,00 no words/captioning)

Video link (please expand/full screen it’s viewed properly at 1024×768): 


About Chad Myers

Chad Myers is the Director of Development for Dovetail Software, in Austin, TX, where he leads a premiere software team building complex enterprise software products. Chad is a .NET software developer specializing in enterprise software designs and architectures. He has over 12 years of software development experience and a proven track record of Agile, test-driven project leadership using both Microsoft and open source tools. He is a community leader who speaks at the Austin .NET User's Group, the ADNUG Code Camp, and participates in various development communities and open source projects.
This entry was posted in ReSharper, Video. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
  • Your mitachlorian count is through the roof. Be careful, you may be recruited to the darkside. Remember, Resharper works with…….VB.NET. Aghhhhh!!

    Very cool video Chad.

  • @Jason:

    Thanks man. For some reason the embeded video isn’t showing up. :(

  • Great job Chad. You showed a TDD approach and how Resharper will stub out the classes and methods that you use first in your tests. I would have preferred that you narrate your actions instead of the crappy music, but it was still worth watching.

    That said, I couldn’t help but think of the word “ceremony” while watching it. :)

  • Very impressive. Agree with Mike in that a slightly-longer, narrated version would be more practical as a teaching tool but your version does prove a point. Roy’s Keyboard Jedi to show the shortcut keys would also help.

    Tip: When you create a constructor with a parameter, you can press Alt-Enter on each of the parameter variables to automatically create a backing field and set it in the constructor. Use the options to set a naming convention (i.e. prefixing it with an underscore). R# also offers a tip to convert it to readonly as well.

  • Matthew Brubaker

    Of interesting note to the FizzBuzz test. In the case of testing the third output. If the two numbers are taken x and y, you can test if the number is divisible by the least common multiple of x and y and achieve the same result.

    For instance, if, as in the case in the video, the numbers are 3 and 5, you can test if the number is divisible by 15 to determine if you should print the number.

    Just a mathematical observance.

  • Is anyone making videos that help you learn good r#-fu? Videos like this remind me what I’m missing out on but they don’t really help with actually learning all the tricks.

  • @Mike: Thanks for peeing in my corn flakes :)

    @Kyle: Yeah, I noticed the c’tor thing in post-production, but I didn’t feel like re-recording the whole thing again :( Maybe v2

    @Matthew: Thanks! The point of this wasn’t really to say how to do TDD or FizzBuzz best, mainly just to show kind of how the workflow of TDD works with ReSharper vs. plain vanilla VS.

    @Paul: Yeah, my point wasn’t necessarily for this to be a step-by-step thing. The point was to show people who were asking me what I was talking about when I said things like “do TDD the ReSharper way versus the VS way.” Several people asked me to explain what I meant, this video is for them (and anyone else curious).

    Was there anything you saw, particularly, that you were curious about (i.e. “how’d you do THAT?”)?

  • No problem, man. That is the exact reason I keep my little toe in the .NET world. :D

  • Hi Chad, I don’t think there was anything in particular. I suppose if there was a version of your video that explained each trick and shortcut then I could try to mimic the steps in the video, and that would be useful.

    But let me ask you this: how did you learn your R#-fu? Did you have sessions where you sat down and said “ok, I’m gonna learn how to be better at resharper”? Did you just pick it up very slowly during your normal work? What about pairing sessions with other jedi, did that have a big effect?

  • @Paul:

    I considered doing another video that explained the shortcuts and techniques. I may yet do that. Let me think about how that might work.

    RE: How’d I learn: I played and fumbled around with it myself. The first, biggest thing that put me on the road to expert was NOT using the Visual Studio shortcuts, but instead using the IntelliJ shortcuts. This was VERY painful, but worth it in the end. The second thing was just sticking with it and not giving up. I had to have faith in others who said it was worth it. Finally, pairing with some other folks who were experts and having them smack my hand every time I reached for the mouse or tried to do something manually that was already automated by R#.


  • Why were you better off using intelliJ shortcuts?

  • It’d be cool to do this video with Roy’s Key Jedi tool running also (

  • Derik Whittaker


    I actually have a few R# videos coming out starting next week that use Keyboard Jedi to show you the short cuts.

    Check out for the video’s

  • I enjoy the dimecast videos Derik, so I’m looking forward to that series on R#!

  • joe


    Whats the magic shortcut to get the r# test runner to run without fiddling with the mouse?

  • @joe:

    Bind a key (CTRL+1 in my case) to ReSharper.ReSharper_UnitTest_ContextRun.

    With your cursor anywhere inside the curly brackets of your test or test fixture, press CTRL+1 and it’ll run that test or test fixture (respectively).

    To close the test runner toolbar window, SHIFT+ESC.