private void AssertEvents(int n) { int oldEventCount = eventCount; eventCount = 0; Assert.AreEqual (n, oldEventCount, "eventCount"); }