Telerik blogs
  • Release

    JustCode formatter – Introduction

    The formatter in Telerik JustCode is one of its many great features. Its main goal is to let you define and enforce your code style across your projects. It is a very important part of the product as it is used in many other places as well (for example typing assistance and refactorings). Configuration The JustCode formatter is very configurable. You can find its options in the Code Style section of the JustCode options dialog: You can also configure JustCode to share the Code Style options per solution. To do that, go to the Options Sharing page in the Options. Supported languages As shown on the image...
    May 27, 2021 3 min read
  • Release

    New Refactorings in JustCode Q3 2011

    With each new release Telerik JustCode continues to expand in all directions. Following our previous refactorings post, here we’ll show you some new conversions added to the refactorings area for JustCode 2011’s Q3 release. Anonymous, Lambda And Named Method Conversions Now you can easily alter between those three ways of defining and using a method. Select the method and then choose from the refactorings menu "To Anonymous", "To Lambda" or "To Named Method" (refactorings context menu is shown with the shortcut Alt+Insert or from the VisualAid’s R menu):   Convert Interface To Abstract Class And Vice Versa Next we have "Convert Interface To Abstract Class" and vice versa. Place...
    May 27, 2021 2 min read
  • Release

    What’s New And Improved In JustCode Q3 2011 SP1

    Hot on the heels of the eagerly anticipated 2011 Q3 release of Telerik JustCode we publish its Service Pack. Our main goal was to improve performance and memory consumption but without forgetting about adding new functionalities and fixing the pending issues, as for example improving the existing code templates. If you want to be up to date with all that is added to JustCode, please visit our What’s New page. Test Runner With this release we introduce support for NUnit data driven tests. Now you can enhance your unit tests by using these attributes: TestCaseSource Combinatorial Sequential Pairwise Repeat Also you will see that we have made changes to the...
    May 27, 2021 2 min read
  • Productivity

    Live Data and Source Code in JustTrace

    Although it was only a month ago when JustTrace Q3 2011 was released, we've launched JustTrace Q3 2011 SP1 with two new major features: a completely redone “Live Data” view and the ability to view source code. In addition, a number of enhancements have been made, resulting in a smoother user experience. Visit the What’s New page for a list of all changes. Live Data View The Live Data view has been updated to provide visual information via charts representing CPU and memory usage. This enables you to visualize how the profiled application process is currently affecting performance and memory consumption. More importantly, you now see...
    May 27, 2021 3 min read
  • Productivity Testing

    Asserting a mock with test framework

    When asserting an expected call for its number of occurrences or may be just to verify if the setup/arrange is acted as intended, the tool generally raises assertion that points us to the reason why the test failed. Different mocking tools use different exception classes therefore there is no common way to consolidate them. However, if we just take a look into the test framework unless its some alien one, they all have a common underlying structure for Assert.Throws or ExpectedException (MSTest). MS Test (C# and Silverlight) Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException NUnit NUnit.Framework.AssertionException XUnit Xunit.Sdk.AssertException MSpec Machine.Specifications.SpecificationException MbUnit Gallio.Framework.Assertions.AssertionException So the point here is that if we just use the existing exception class rather...
    May 27, 2021 2 min read