private void AssertEvent(Object myInt, Object myDouble, Object myString) { Assert.IsTrue(listener.GetAndClearIsInvoked()); Assert.AreEqual(1, listener.GetLastNewData().Length); EventBean theEvent = listener.GetLastNewData()[0]; Assert.AreEqual(myInt, theEvent.Get("myInt")); Assert.AreEqual(myDouble, theEvent.Get("myDouble")); Assert.AreEqual(myString, theEvent.Get("myString")); listener.Reset(); }