• .NET

    Migrating Reflector’s Lists to JustDecompile ones

    If you (like me) were a heavy Reflector user you will probably like the tool that I’m going to share with you today. It is a very simple WPF application that allows you to migrate your existing Reflector's list to their JustDecompile equivalents. Usage is pretty straight forward. You just™ point the app to your Reflector’s installation folder and it will take care of the rest. You can download the tool here. Any feedback: bugs and feature requests is more than welcome. Let's finish with a rhyme: Let the force of a freely decompiled source guide you in your course. ...
  • .NET

    Mocking MsCorlib members

    May 12, 2011 Share
    In this post , I will show how you can mock  members from MsCorlib. This is more of an introductory post and shows what you need to do in order to successfully mock an MsCorlib member. If you are planning to mock File or DateTime then the process is pretty straight forward , you just need to put a MockClassAttribute on top your test class. The process for intercepting  such is bit different as we don’t want to get your code through the particular logic for every other type and make your test slower. Therefore, we limit it to an attribute declaration to mark...
  • .NET

    Mocking MessageBox.Show with JustMock

    April 21, 2011 Share
    Using JustMock Commercial Edition you can easily mock out calls to MessageBox.Show().  This can come in handy if you are testing code that bases its execution path on a MessageBox’s result. Also, it is unlikely you want the MessageBox to actually pop up while running your tests.  Let’s see how we can accomplish this!  The Basics [TestMethod] public void MOCK_MESSAGEBOX_RESULT() { bool called = false; DialogResult expected =...
  • .NET

    JustCode Q1 2011 Service Pack 1 is out

    A month after the successful JustCode Q1 release we are ready with a new wave of improvements – Q1 2011 SP1. You can download it directly from Visual Studio through the JustCode Auto Updates or get it from telerik.com. Highlights for the Service Pack: Performance optimizations – startup performance, solution load performance, memory consumption, etc.; New Generate ToString() feature; A ton of other fixes and improvements (more info in the full release notes). As always for the service pack we focused on fixing reported issues. Additionally we were able to squeeze in some nice improvements that should make your just-coding experience a better one. In the same time...