• .NET

    Developer Resolutions for 2013

    My friend and coworker Chris Eargle wrote a great post on some resolutions for the New Year.  It made me think about how lucky we were to avoid this particular apocalypse (along with all of the others that I've lived through in my 45 years), so I’ve come up with a few developer centric resolutions of my own.
    January 07, 2013
  • .NET

    Are You a Developer Who Survived the Apocalypse

    Make Some Resolutions! Surviving three apocalypses in two years was so exhausting that I managed to miss three others. We supposedly have five more years before the next, but I fully expect a hipster apocalypse or zombie uprising before then. It may even be the same event if a nefarious person discovers NSA back doors in Apple products. 
    January 03, 2013
  • .NET

    Mocking Property Getters and Setters

    In typical unit testing scenarios, mocking property getters and setters isn't high on the list of areas of concern. Where it usually comes into play is when an entity’s properties’ values (or the act of setting them) are part of the scaffolding, or behavior for the system under test.
    December 27, 2012
  • .NET

    Mocking Constructors with JustMock

    In .NET there are two types of constructors, instance constructors and static constructors. Instance constructors are called when objects are instantiated, while static constructors get called before any member of the class is invoked for the first time.
    December 13, 2012
  • .NET

    New Mocking Capabilities in JustMock Q3 2011 SP

    Telerik JustMock received many new features in the service pack for the Q3 2011 release, enhancing the mocking framework’s impressive ability to mock almost everything. Let’s take a look at a few highlights of JustMock Q3 2011 SP. Mock Inside a Threadpool Mock objects can be accessed inside of another thread and work as expected. var mockable = Mock.Create<Mockable>(); Mock.Arrange(() => mockable.IsMocked).Returns(true); bool mocked = false; var latch = new WaitLatch(); ThreadPool.QueueUserWorkItem(cookie => { try { mocked = mockable.IsMocked; } finally { ...
    February 03, 2012