Exemple #1
0
 public void GetPathFor()
 {
     #region GetPathFor
     var path = EmptyFiles.GetPathFor("jpg");
     #endregion
     Assert.NotNull(path);
     Assert.True(File.Exists(path));
 }
Exemple #2
0
 public void IsEmptyFile()
 {
     #region IsEmptyFile
     var path = EmptyFiles.GetPathFor("jpg");
     Assert.True(EmptyFiles.IsEmptyFile(path));
     var temp = Path.GetTempFileName();
     Assert.False(EmptyFiles.IsEmptyFile(temp));
     #endregion
     File.Delete(temp);
 }