Telerik blogs
  • Productivity

    Personas Help Drive Requirements.. Really!

    Look familiar? Yup, that’s right – this is a UML Use Case Diagram. This particular, and rather over simplistic, one depicts a few different UML Actors associating with Use Cases.
    January 14, 2011
  • Productivity

    Predictions for 2011

    Last year I made 14 predictions on what I thought might transpire in the world of technology in 2010. http://weblogs.asp.net/jsemeniuk/archive/2010/01/07/predictions-for-2010.aspx So, what do I think is in store for us in 2011? Here is goes… 1. The Kanban Influence: Last year I predicted that Lean Software Engineering will become a first class citizen. I was wrong; however, some Lean principles have been emerging in the form of Kanban. David Anderson is absolutely pioneering this wave, and I believe that the influence of Kanban will make its way deeper into the world of agile software development this year. More and ...
    December 30, 2010
  • Productivity

    Managing Debt

    Do you ever find yourself too busy “fighting fires” to do things “the right way”? Do you know that there are better ways of managing your project, but you find that you just need to get things done and can’t be bothered to fix underlying problems because it may slow you down? Ever find yourself wondering if you will ever have time to go back to a feature you released a year ago to make it better and move valuable to your users? If so, you may be in debt. No, I’m not talking about your personal financial situation. I’m ...
    December 29, 2010
  • Productivity Testing

    Mocking Exceptions and Events with JustMock Free Edition

    [Cross Posted from http://www.skimedic.com/blog] Mocking Exceptions When writing unit tests, it is important to cover not only the successful execution path (commonly referred to as the “Happy” path), but also test the code that gets executed when things don’t go right (commonly referred to as the “Unhappy” path).  Testing for situations where services or databases are unavailable as well as erroneous user input are important aspects of ensuring quality in software.  Remember, if you don’t test it, your users will! We modify the LoginUser method to throw a custom exception when there is an exception is thrown from the LoginService.  To test this,...
    December 28, 2010
  • 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