I'm trying to write unit tests for an application that reports on Entries in an EventLog. Right now when I run the unit tests, I'm having to create a temporary EventLog, write entries to it, and delete the log when I'm done. I'm doing this because I need to get back the EventLogEntry object, which have no constructor.
My question is are there any ways of mocking an EventLog to be able to get back EventLogEntries. Having to write entries to the actual EventLog seems more like integration testing than unit testing to me.