• .NET

    Abstracting Dependencies with JustMock

    Unit tests are most effective when the System Under Test is isolated from its dependencies.  The best way to isolate your code (and make your code more SOLID) is through dependency injection. But even if you follow the rules of SOLID and inject all of the necessary dependencies in as interfaces, you are still faced with the fact that you depend on them. In order to test your code, something concrete has to be passed into the code in order for it to even compile.  Your production code will most likely use a factory to create concrete instances of the dependent interfaces, but that...
    October 31, 2012
  • .NET

    Fakes, Stubs, and Mocks

    In Doing Your First Mock, Mehfuz Hossain explained why you should use mocking to improve your unit tests and then used a real world example to demonstrate this technique. In this post, I will take you down a different path using other forms of stand-ins.
  • .NET

    From Legacy to Dependency Injection

    The best thing about using Telerik JustMock is that you can mock practically everything. You can even mock types without using dependency injection, making JustMock the best framework to use when working with legacy code. We’ve all encountered tightly-bound code, and our first instinct is to correct it. However, there are only so many hours in a sprint, and it’s not always convenient to go on a large refactoring spree when the backlog is filling up. With JustMock, you can still ensure the code works, and it will set you up for the cleaning that will take place at a later time. The...
    April 04, 2012
  • .NET

    JustCode Support for Visual Studio 11

    Last week during the BUILD conference Visual Studio 11 Developer Preview was announced. Soon after that it was made available to the public. Here at Telerik we are committed on providing support for the latest and greatest technologies so we are already working on JustCode for Visual Studio 11. Actually, JustCode is happily running inside VS11 on our own PCs. Now it is a matter of an internal build or two to test and fix some compatibility issues before we can give it to you for test...
    September 22, 2011
  • .NET

    JustCode Keeps Getting Better

    Telerik JustCode Q3 2011 is just around the corner, but we’re not waiting to bring you new features and enhancements for your favorite productivity tool. Telerik JustCode Q2 2011 Service Pack has been launched with a dazzling array of features and enhancements to make development fast and fun. Microsoft’s BUILD conference just ended, promising a shift in the way we approach Windows development. One thing is for certain: it will be easier than ever before to write responsive software. With the new asynchronous features in C# and VB.NET, you can create high throughput ASP.NET MVC applications without breaking a sweat. JustCode fully...
    September 19, 2011