Telerik blogs
  • People

    SQL Saturday Hawaii Recap

    SQL Saturday 72 (Honolulu) was a great success!  This event had three tracks – one for SQL (of course), one for .NET and one for more general topics.  Chris Eargle (@kodefuguru) and I came from the mainland and presented (between the two of us) 7 topics. This was my first time in Hawaii, and it was great.  Although I could only stay for 48 hours (I think I spent more time in planes than I did in the Islands), everyone I met was extremely friendly.  The attendees at the event were very engaging, asked a ton of great questions, and followed...
    April 05, 2011
  • 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 Testing

    Resolving Compatibility Issue Between JustCode and MSpec

    [Cross posted from www.skimedic.com/blog] Telerik’s JustCode natively supports several test runners, including MSpec. This is great - the JustCode product team has taken on the responsibility to make sure the test runner works with the test frameworks, letting the framework developers focus on building even more awesome frameworks! Occasionally, this can cause an issue, though, as we just discovered here at CodeMash. The latest rev of MSpec introduced breaking changes in the JustCode test runner. While the team is hard at work updating the test runner to be compatible with the latest api, the work around is very simple. Simply change the Copy...
    January 15, 2011
  • Productivity Testing

    Mocking Exceptions and Events with JustMock Free Edition

    [Cross Posted from http://www.skimedic.com/blog] Mocking Exceptions When writing unit tests, it is important to cover not only the successful execution path (commonly referred to as the “Happy” path), but also test the code that gets executed when things don’t go right (commonly referred to as the “Unhappy” path).  Testing for situations where services or databases are unavailable as well as erroneous user input are important aspects of ensuring quality in software.  Remember, if you don’t test it, your users will! We modify the LoginUser method to throw a custom exception when there is an exception is thrown from the LoginService.  To test this,...
    December 28, 2010
  • Productivity Testing

    Sequential and Recursive Mocking with JustMock Free Edition

    [Cross Posted from http://www.skimedic.com/blog] Sequential Mocking One of the trickiest types of code to mock out for testing is recursive methods.  In a typical recursion, the same method is called multiple times, and each time there are typically different parameters passed in, and different return values.  To easily handle this, JustMock gives you two options: Adding InSequence() to each arrange Chaining Returns() calls together. To illustrate the first option, look at the following test: [Test] public void Show_Sequential_InSequence_Arrange_Option() { var service = Mock.Create<IService>(); Mock.Arrange(() => service.GetSum(Arg.AnyInt, Arg.AnyInt)) .Returns(4).InSequence(); Mock.Arrange(()...
    December 25, 2010