public void path_cannot_be_modified_whilst_reader_has_it_open()
{
var path = Path.GetTempFileName();
using(var reader = new RecordedMessageReader(path))
{
Assert.Throws<IOException>(() => File.Delete(path));
Assert.Throws<IOException>(() => File.OpenWrite(path).Dispose());
}
File.Delete(path);
}