• .NET

    Asserting Behavior with JustMock

    January 10, 2013 Share
    JustMock is a great tool for abstracting dependencies in unit tests, and the new automocking feature makes it even faster to develop unit tests.  Another great feature in JustMock and JustMock Lite is the capability to assert the behavior of your system under test.  Traditional TDD (Test Driven Testing) unit testing typically tests for state.  Did the user get logged in? Did the user’s shopping cart get loaded?  Important tests, of course.  But that only tests the end result of the method.  If the user does NOT successfully login, and the cart is not reloaded, is that because the call to the repository was never called? Or because some error happened that didn’t reload the cart in this particular use case?  The state of the application is correct, but is that because it executed the expected behavior, or because we got lucky? 
  • .NET

    Mocking Constructors with JustMock

    December 13, 2012 Share
    In .NET there are two types of constructors, instance constructors and static constructors. Instance constructors are called when objects are instantiated, while static constructors get called before any member of the class is invoked for the first time.
  • Testing & ALM

    The Importance of Wireframes in Application Design

    December 04, 2012 Share
    Recently, I joined efforts with two of my good friends and fellow Telerik Evangelists Michael Crump and Jesse Liberty to jointly build an application that would run on Windows 8 and Windows Phone. Michael will do the Windows Phone development, Jesse Windows 8 with C# and XAML, and I will tackle the WinJS version. Jesse did a great job of outlining the goals of the application and the initial wireframes of the application in his post on the project kick off. I want to focus on the value of using Wireframes in application design.
  • Testing & ALM

    JustCode JavaScript Templates for WinJS

    November 25, 2012 Share
    I’ve been doing a lot of WinJS work recently, and I am an avid user of the JustCode Template functionality.  So, I thought I’d share my templates as I have them now, and will update this post as I update them or create more.  For more information on creating JustCode templates, please see this help content. For each template, I show my acronym in parenthesis.  For example, the first template’s acronym is “winjsfile”.  I also don’t show the results for every template, since some of them are obvious. Templates for New JavaScript File This template and the related templates following are used when I...
  • Testing & ALM

    The Telerik Report Designer: More Powerful Than Ever Webinar

    October 29, 2012 Share
    Slides, Source Code and Video to the "The Telerik Report Designer: More Powerful Than Ever" Webinar Now Available We want to thank you all for attending the Telerik Reporting Webinar. As promised, all of the materials are now available for you to download and explore on your own. If you have any questions, please feel free to leave a comment below. We also suggest that you download Telerik Reporting and the new standalone Report Designer if you haven’t already done so. For Those Who Couldn’t Attend, What is the Telerik Reporting? Telerik Reporting is a lightweight reporting solution for all .NET cloud, web, and...