Blog

Battle of the framework: Testing a Webpart

Time to see the difference between Moles and Isolator code. Let’s start with the code under test (a webpart): public class NewMessagesCountWebPart : WebPart{    private Label lblNewMessages;    protected void CreateChildControls(int i)    {        CreateChildControls();    }       protected override void CreateChildControls()    {        lblNewMessages = new Label();        lblNewMessages.Text = GetMessageNumberText();        this.Controls.Add(lblNewMessages);        base.CreateChildControls();    }    private string GetMessageNumberText()    {        using (SPSite site = new SPSite(“http://sharepoint.typemock.com”))        {            using (SPWeb web

Read More

Battle of the frameworks: The SharePoint arena

Last week, I gave a presentation at the Israeli SharePoint user group on unit testing SharePoint applications. Slides below. Me closer (lurking in the shadows). As an objective observer, I compared the two and only alternatives for Isolation frameworks for SharePoint: Typemock Isolator and Microsoft Moles. And here’s my objective decision: Isolator wins by a

Read More

Meeting David Anderson

I had the pleasure of meeting David Anderson on Tuesday. If you’d like to read more on how it happened, read it in Tal’s words. And since David was at our offices, we discussed how we do Kanban at Typemock and heard lots of suggestions on how we can improve our service process  (where Kanban

Read More

Certifiable

I’ve been following the “war on certifications” for a while. It’s not new, since scrum had certifications for many years now, and Microsoft adds fuel to the fire with the newly created “Certified scrum developer”.The latest from Uncle Bob’s R.E.A.L.I.T.Y show made me smile. And yes, if you thought I was going to oppose the

Read More

Old dog, new tricks

Sometimes I see the wonders of the universe in small things. And I’m not talking about my kids this time. When I try to formulate some text or idea, I usually use Word. One of the skills I’ve adopted, is to put down everything I think on the document first, then edit and re-edit. I

Read More

Focus

With Scrum certification dividing proponents and rivals, one voice of reason appears: Ron Jeffries tries to focus the discussion back on fighting bad software, with or without certifications. Mostly without. I want to take this up a notch. We want good software that makes good business sense. And this goes well with Uncle Bob’s blog

Read More