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