Added unit test for SummaryGenerator class

- added test case that uses NMock3 (*not* included in commit)
- refactored SummaryGenerator class a little to simplify testing