using NoFake.IO;
namespace NoFake.IO.Tests
{
   public class FileTest
    {
       public bool CheckEmptyFileExist(string fileName)
        {
            using (var f = FileFactory.GetEmpty(fileName))
            {
               return File.Exists(f.FullPath);
            }            
        }
    }
}

using NoFake.IO;
namespace NoFake.IO.Tests
{
   public class DirectoryTest
    {
       public bool CheckDirectoryExist(string path)
        {
            using (var tempDir = DirectoryFactory.GetNew(path))
            {
                return Directory.Exists(tempDir.FullPath);
            }          
        }
    }
}