Problem: you have a method that logs a message using the Microsoft Patterns & Practices Enterprise Library Logging Block, and you would like to write an automated unit test for it in NUnit (or Team System – solution is easily adapted). Logging to a flat file doesn't work; the file is still open when you try to read it to verify that the message has been logged. Logging to the database doesn't work; it seems the log isn't written to the database immediately. And so forth. Is there an in-memory way of reading the logged message?
May 2009 Archives
Unit Testing Functions That Call Microsoft Enterprise Logging
May 27, 2009
Continue reading Unit Testing Functions That Call Microsoft Enterprise Logging
Search
About this Archive
This page is an archive of entries from May 2009 listed from newest to oldest.
April 2009 is the previous archive.
June 2009 is the next archive.
Find recent content on the main index or look in the archives to find all content.
Categories
- .Net Framework (3)
- C# (18)
- General
- Life
- Linux (3)
- Music and Literature
- Peace and Justice
- Religion
- SQL (7)
- Science
- Society
- Sustainability
- Tech/Software
- Windows (6)
- Words
Monthly Archives
- May 2014 (3)
- April 2014 (1)
- February 2014 (1)
- December 2013 (1)
- November 2013 (1)
- August 2013 (1)
- July 2013 (4)
- June 2013 (1)
- May 2013 (2)
- February 2013 (1)
- October 2012 (1)
- September 2012 (1)
- July 2012 (1)
- June 2012 (1)
- May 2012 (1)
- April 2012 (6)
- March 2012 (3)
- February 2012 (1)
- January 2012 (1)
- December 2011 (3)
- November 2011 (4)
- October 2011 (1)
- February 2011 (1)
- January 2011 (1)
- December 2010 (1)
- November 2010 (1)
- August 2010 (3)
- June 2010 (1)
- May 2010 (4)
- April 2010 (1)
- March 2010 (1)
- February 2010 (1)
- January 2010 (1)
- October 2009 (1)
- September 2009 (3)
- August 2009 (1)
- June 2009 (2)
- May 2009 (1)
- April 2009 (2)
- March 2009 (1)
- February 2009 (2)
- January 2009 (1)
- December 2008 (1)
- November 2008 (2)
- October 2008 (1)
- September 2008 (2)
- August 2008 (4)
- July 2008 (1)
- June 2008 (1)
- May 2008 (2)
- April 2008 (1)
- March 2008 (2)
- February 2008 (5)
- January 2008 (3)
- December 2007 (4)
- November 2007 (1)
- October 2007 (3)
- September 2007 (2)
- August 2007 (2)
- July 2007 (9)
- June 2007 (7)
- May 2007 (1)
- June 2005 (1)
- May 2005 (1)
- August 2004 (1)
- December 2003 (1)
- November 2003 (3)
Pages
OpenID accepted here
Learn more about OpenID