Can't you mock up the file system and use DI to get around that? I have a small sample here: http://japikse.blogspot.com/2009/03/test-driven-development-with-static.html
Phil Philip Japikse, MCSD.Net, MCDBA, CSM Principal Consultant Pinnacle Solutions, Inc [email protected] www.japikse.blogspot.com twitter/skimedic (513) 312-5664 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of QuantumBR Sent: Thursday, March 12, 2009 6:49 AM To: MbUnit.User Subject: MbUnit Mention the file path in a unit case. Hi I am facing a small problem in my test cases. My functions take file paths as inputs. I want to provide a generic path for this so that the path can be the same on all machines. Is there anything in MbUnit that helps with the file paths, etc. Can some1 please help me with a solution to this problem of mine. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MbUnitUser?hl=en -~----------~----~----~----~------~----~------~--~---
