Obvious in retrospect, but took me a minute to catch on to what’s going on here: This works like a trooper until someone passes in a byte.MaxValue in a unit test and i becomes 0 after reaching maximum and getting incremented again.
All posts for the month September, 2010
How to create an infinite loop
Posted by Anna Lear on September 2, 2010
http://annalear.ca/2010/09/02/how-to-create-an-infinite-loop/