Ejemplo n.º 1
0
 public void WhenFileCorruptedThenThrowException()
 {
     Assert.Throws <ApplicationException>(() => FileCreater.GetDirectory(""));
 }
Ejemplo n.º 2
0
 public void WhenFileArgumentIsAcceptedThenCreateNewFile()
 {
     FileCreater.GetDirectory(_fileName);
     Assert.True(File.Exists(GetPath(_fileName)));
     Assert.Equal(0, new FileInfo(GetPath(_fileName)).Length);
 }