I think I got it. I will add more test coverage then resubmit.  

-Jim  


On Tuesday, October 15, 2013 at 1:32 AM, David Perfors wrote:

> In TestingHelpers/MockFileInfo.cs:
> > + > + public override FileInfoBase CopyTo(string destFileName, bool overwrite) > + { > + new MockFile(mockFileSystem).Copy(FullName, destFileName, overwrite); > + return mockFileSystem.FileInfo.FromFileName(destFileName); > + } > + > + public override Stream Create() > + { > + throw new NotImplementedException("This test helper hasn't been implemented yet. They are implemented on an as-needed basis. As it seems like you need it, now would be a great time to send us a pull request over at https://github.com/tathamoddie/System.IO.Abstractions. You know, because it's open source and all."); > + } > + > + public override StreamWriter CreateText() > + { > + if (!string.IsNullOrEmpty(path)) > + return new StreamWriter(path);  
> I think you should use the content of MockFileData and create a memorystream (or some MockFileStream) for it and pass it to the StreamWriter...
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/tathamoddie/System.IO.Abstractions/pull/51/files#r6964222).
>  
>  
>