• Doing Your First Mock

    Monday, May 14, 2012 by Just* Team | Comments 0

    Are you looking for a solution to your unit tests modifying data? Perhaps your unit tests are so slow that none of your teammates bother running them? You need mock objects.

    The following items will be covered to help you write better tests:

    1. Why Mocking – how mock objects help you
    2. Real World Example –an example of code to be tested
    3. Testing the Example –how to use mocking to test the example
    4. AAA Pattern – a pattern emerges when writing clean tests

    Why Mocking?

    Mocking is one of the most important factors in writing better unit tests. It drastically ...

  • Hot on the heels of the recently added support for QUnit and Jasmine JavaScript testing frameworks in Telerik JustCode, we have continued to evolve our Test Runner to make it even better. You will find many improvements in the latest version of JustCode in regard to running QUnit and Jasmine tests from within Visual Studio, and we’ve simplified the way you work with JustCode’s Test Runner to make it quicker and more convenient. Here is a detailed list of improvements: 

    • Jasmine and QUnit tests run faster
    • Support for any browser that is installed on your PC - Firefox, Chrome, ...
  • Some developers have been surprised to discover JustCode and JustTrace installed on their system after installing JustDecompile. Whereas most simply try out the tools or uninstall them, some have expressed concern that we’re bundling software in the installer. Suffice to say, we’re not. But, if we’re not bundling other products in the installer, what’s really going on?

    Web Installer Launcher

    When you download JustDecompile (which is free) or one of our trial products, you actually receive a lightweight web installer launcher. This program simply allows you accept the license agreements and select products. It then downloads the individual installers ...

  • Microsoft released Visual Studio 11 Beta just over a month ago, and we quickly ensured bleeding edge developers would have access to their favorite productivity tool, Telerik JustCode! So, what about the other Just products?

    Visual Studio 11 Support

    We wouldn’t dare leave our loyal JustMock and JustTrace users out of the fun. If you keep current with our internal builds (or service pack for JustTrace), you already have versions with Visual Studio 11 support! However, we only install our products into the versions of Visual Studio you selected. Since you probably installed the tools before VS11 came ...

  • Nothing says .NET Ninja more than creating beautiful applications from beautiful code, with optimum performance and memory management. Other Telerik products help you create beautiful code, but Telerik JustTrace will hone it to a razor edge. There are many exciting changes coming in Q2 2012, and the first step along that path is JustTrace Q1 2012 Service Pack 1.

    Open the Most Expensive Path

    The life of an application can be considered a journey, but getting from point A to point B may go down many paths. A new option in JustTrace’s performance profiler snapshots takes you to the ...

  • I recently decided to clean up an open source project, and the best tool I found for the job was Telerik JustCode’s Code Clean option. If you’ve never tried it, open the JustCode Options, go to Code Cleaning, then use the drop down to select Full (built-in) and press the “Set as Default” button.

    image

    If you wish, you can use the “New” or “Clone” button to set up your own profile that matches your coding style. Afterwards, return to a piece of code file and press Ctrl+Shift+Alt+F and watch your (co-worker’s) code be processed into a thing of beauty.

    Opening ...

  • As a programmer, I can honestly say that I am lazy. Forget the menial job of repeating tasks... if it takes me an hour to complete an iteration, I would rather spend 3 hours automating the process. You never know when you might need to do it again, and the click of a button is much more satisfying than an hour of processing data. I know I’m not the only one who feels this way either, otherwise Andy Hunt and Dave Thomas wouldn’t have codified the DRY principle in The Pragmatic Programmer…. Don’t Repeat Yourself.

     Visual Studio makes ...

  • 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 ...

  • The Telerik JustCode 2012 Q1 service pack has been released, and with it comes improvements to help you begin writing JustCode extensions.

    Project Template

    Our previous release of JustCode included a project template that included three extension examples for navigation, code marking / fixes, and refactoring. This is accessed from the Telerik menu under Installed Templates when creating a new project.

    NewProject

    Running this project would copy the assembly to the Libraries\UserExtensions folder in the JustCode installation path. This had the unfortunate side effect of applying the extensions anytime you ran Visual Studio, which would cause the assembly to be locked ...

  • Microsoft recently released the new Visual Studio 11 Beta. The JustCode team has been working hard, and we have already published an internal build with support for Visual Studio 11. You can download it directly from your account. Feel free to give it a try, and please keep in mind that VS11 is in beta and JustCode support is still experimental. Some glitches are to be expected.

    The fine print

    There are a few known issues when using JustCode with Visual Studio 11:

    • WinRT projects are not supported yet.
    • Asynchronous solution loading (a nice improvement for Visual Studio 11 ...
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. »