A timer triggers every millisecond and causes a dataobject to control itself, if a change is made an event is fireing. (NowTimeCapsule : TimeCapsule : ACapsule : ICapsule)
Dependent objects (TimeCapsule : ACapsule : ICapsule) have registered for that event and update themselves if nescessary. If a change is made an event is fired.
A Form adds delegates to the dependent objects Change event, if the event fires the delegate updates a textbox.
For some reason this chain breaks down – i Unittested the individual parts and i know (by throwing messageboxed) that it runs a while before breaking down.
How can i test this chain using NUnit.
Where are reasonable corners to concentrate testing on.
EDIT:
Found it. The timer was wrapped to catch exceptions and the invoke failed with an exception. The trigger was disposed by the wrapper. I removed the wrapper and fixed the invoke, all tests green. i will write an answer as soon as i know its stable.
The updater that threw the events had a bug and crashed.
Events work fine.