Telerik blogs
  • Productivity Testing

    Asserting Behavior with JustMock

    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? 
    January 10, 2013 5 min read
  • Productivity Testing

    Mocking Constructors with JustMock

    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.
    December 13, 2012 3 min read
  • Productivity

    Evolving Simple Wireframes With AppMock

    In an earlier post I introduced the initial wire-frame design for an application that I’ll be creating from scratch in XAML and C#, tentatively named Conference Buddy. As noted in that article, Phil Japikse will be creating the same application in HTML/JavaScript and Michael Crump will be creating the companion application for Windows Phone 8. As we think about and design (and re-design), we’ve switched over to a Telerik AppMockPage1show case application named AppMock , available in the Windows Store.
    December 06, 2012 2 min read
  • Design

    The Importance of Wireframes in Application Design

    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.
    December 04, 2012 5 min read
  • Productivity

    JustCode JavaScript Templates for WinJS

    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...
    November 26, 2012 2 min read