Writing the tests for FluentPath
Posted
on Dot net Slackers
See other posts from Dot net Slackers
Published on Sat, 29 May 2010 00:00:00 GMT
Indexed on
2010/05/31
14:34 UTC
Read the original article
Hit count: 188
Filed under:
Writing the tests for FluentPath is a challenge. The library is a wrapper around a legacy API (System.IO) that wasnt designed to be easily testable. If it were more testable, the sensible testing methodology would be to tell System.IO to act against a mock file system, which would enable me to verify that my code is doing the expected file system operations without having to manipulate the actual, physical file system: what we are testing here is FluentPath, not System.IO. Unfortunately, that...
Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
© Dot net Slackers or respective owner