Monthly Archives: May 2012

Yet another nice new feature in .Net 4.5 (beta)

How many times have you written Trace code and used MethodBase.GetCurrentMethod() or the Exception.TargetSite or the StackTrace in that code to get the method name or better yet, tried to get the line number.  Well, they’ve made that much easier … Continue reading


Posted in Uncategorized | Leave a comment

(Not so much) fun with Rhino Mocks

After creating some unit tests, I ran into a problem where the TestInitialization method was failing with either one of two errors. The test initialization was performing something similar to: [TestInitialize] public void Initialize() { myMock = MockRepository.GenerateMock<IMyInterface>(); myMock.Stub(m => … Continue reading

Posted in Uncategorized | Leave a comment