Created
April 30, 2014 11:10
-
-
Save codescribler/fa7f4e3b87f1973382c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Scribe | |
{ | |
public void SaveMessage(string file, string data) | |
{ | |
if (File.Exists( file )) // How do you test this code?? | |
{ | |
throw new Exception("File name must be unique"); | |
} | |
File.WriteAllText(path, data); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment