Skip to content

Instantly share code, notes, and snippets.

@theorigin
Created October 29, 2013 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theorigin/7214845 to your computer and use it in GitHub Desktop.
Save theorigin/7214845 to your computer and use it in GitHub Desktop.
An interface definition for the System.IO.File class. Allows mocking of code that uses any of these methods
namespace namespace VS.Library.Interfaces
{
public interface IFile
{
void Move(string sourceFileName, string destFileName);
bool Exists(string fileName);
void Delete(string fileName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment