public void InstantiateAndDispose_FileDoesNotExist() { const string filePath = "log.txt"; var log = new SimpleFileLogger(filePath); log.Dispose(); File.Delete(filePath); }
public void InstantiateAndDispose_FileExists() { const string filePath = "log.txt"; File.WriteAllText(filePath, "Etwas."); var log = new SimpleFileLogger(filePath); log.Dispose(); File.Delete(filePath); }