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