Telerik blogs

Latest

  • Productivity Testing

    Sequential and Recursive Mocking with JustMock Free Edition

    [Cross Posted from http://www.skimedic.com/blog] Sequential Mocking One of the trickiest types of code to mock out for testing is recursive methods.  In a typical recursion, the same method is called multiple times, and each time there are typically different parameters passed in, and different return values.  To easily handle this, JustMock gives you two options: Adding InSequence() to each arrange Chaining Returns() calls together. To illustrate the first option, look at the following test: [Test] public void Show_Sequential_InSequence_Arrange_Option() { var service = Mock.Create<IService>(); Mock.Arrange(() => service.GetSum(Arg.AnyInt, Arg.AnyInt)) .Returns(4).InSequence(); Mock.Arrange(()...
    December 25, 2010 3 min read
  • Productivity Testing

    Test Scheduling Updates in 2010 Q3 Service Pack 1

    This week we published the latest official release of our automated testing tools – 2010 Q3 Service Pack. This release enhances product stability by introducing a lot of improvements and bug fixes in many areas. I’d like to focus this post on the latest optimizations and important bug fixes in the Test Scheduling feature. I’ll start with the QA Edition changes. Project Tab Now you can find the following Scheduling commands in the Project Tab.
    December 17, 2010 4 min read
  • Productivity Reporting

    Connecting Telerik Reporting to SQL Azure via Open Access

    Download SqlAzure.OpenAccess (C# VS2010) - 163KB In the previous blog post from the series we discussed how to connect Telerik Reporting to a SQL Azure database using ADO.NET with the help of the SqlDataSource component. Now we will demonstrate how to accomplish the same task with Open Access ORM utilizing the OpenAccessDataSource component. For the sake of this example we assume an existing SQL Azure account with the Adventure Works sample database already installed. Let’s start with a new Open Access domain model – the Open Access ORM Data Wizard starts. Choose Microsoft SQL Azure as a backend for the database connection and specify the connection string to your SQL Azure database as shown in the screenshot below: Choose the following tables...
    December 16, 2010 3 min read
  • Productivity Testing

    Introducing JustMock Free Edition

    [Cross posted from .NET Musings] Technorati Tags: mocking,.NET,Testing,TDD,BDD,JustMock,Telerik Today Telerik launched a free edition of it’s commercial mocking tool, JustMock Free Edition.  The commercial version of JustMock has been out now for a while, and brings incredible power to the table, such as mocking sealed and static classes, non-public members and types, as well as many more features.  For more information on the commercial version of JustMock, see  http://www.telerik.com/products/mocking.aspx. I do a lot of testing.  I am addicted to TDD/BDD, and can’t live without a mocking tool. The new (or “greenfield”) code that I develop is based on interfaces, SOLID, etc., and I don’t always...
    December 15, 2010 3 min read