Chapter 4 - TestGetsTopTwenty fails

The test TestGetsTopTwenty() has Assert.AreEqual(292, result.Report.Last().Count). I don’t see how a top-N report could have the last entry be greater than the first (277). As I match the first entry and the last entry is 242, I expect that there is a typo in the test and have changed it accordingly in my local code.


Brian, I have come across this same issue and have also resolved this by fixing the test. Testing for 292 instead of 242 is most definitely a typo. Hopefully they fix this before it causes more confusion for others.