Telerik blogs
  • Release

    JustCode Q1 2011 RTM is here

    As part of Telerik’s major Q1 2011 release, JustCode arrives with tons of great new stuff. The biggies are Code Cleaning, Decompiling and Options Sharing features.  Our brand new Code Cleaning feature allows you to reformat and tidy up your code in a single step. We have been working on an integrated decompiler for quite some time. It allows you to seamlessly browse through decompiled code in referenced assemblies as if it were source. With this release of JustCode you can start doing that without leaving Visual Studio. Applying code style standards across the team is now possible with the new Options...
    March 16, 2011
  • Productivity

    How to raise event for a mocked call.

    Recently, while i was working with a support issue, I found this interesting piece of test code that i would like to share here. This is actually written by Stefan Lieser (clean code developer from Germany forwarded to me by Jan from Telerik Germany).
    October 06, 2010
  • Productivity

    Mocking SPContext.Current with JustMock

    Today, I happen to find an interesting post on mocking SharePoint context using TypeMock. Being a JustMocker, i thought rather to follow the footsteps and see if can do the same with JustMock. I am no SharePoint expert. Occasionally, I use a Windows 2003 VM with SharePoint server installed which gives me the required flavor of SharePoint for testing  SP capabilities of JM. Anyway, here is the original post that i am going to recycle using JustMock. http://meronymy.blogspot.com/2010/09/mocking-spcontextcurrent-with-typemock.html   The scenario here is pretty simple. There is a method that returns an URL from the current SPContext which i am going to mock in order...
    September 27, 2010
  • Productivity

    JustCode Code Templates

    Template Basics JustCode templates are much like Visual Studio code snippets. They give you a chance to seamlessly generate a piece of code following a predefined structure. In the general case you just have to pick up the real content, i.e. the stuff that actually defines the logic of the code, from a set of possible choices that JustCode computes for you. All the boilerplate code is automatically generated for you. For example, here is how the C# built-in foreach code template  normally works out: Step 1 – Expand the template Step 2 – Choose a collection variable to iterate over   Notice how the type of e automatically changes from string to int   Step...
    September 06, 2010