Well (again, to the best of my knowledge), Eraser sees a drive to fill up and creates files of random characters until it's full. It stands to reason that the function is carried out in the same way on anything that appears to be a drive.
I would think you could test this function with file...