public void CleanUp() { if (_objectToTest != null) { if (File.Exists(_objectToTest.TemporaryFilePath())) { _objectToTest.Dispose(); File.Delete(_objectToTest.TemporaryFilePath()); } } }
public void IfCallingEmptyConstructorShouldCreateZippedTempFileAndGZipOutputStream() { _objectToTest = new GZIPSheetDataWriter(); Assert.True(_objectToTest.TemporaryFilePath().Contains("poi-sxssf-sheet-xml")); Assert.True(_objectToTest.TemporaryFilePath().Contains(".gz")); }