Implemented ShouldRenderFile

Please review.

If you are happy with these changes then I am and you can merge. 
I do not think any optimizations (streaming instead of buffering etc.) will matter for any reasonable unit test and therefore I omitted them.