public EventPlayerWithHandlers() { _sut = new EventPlayer(); _event = new object(); _sut.Register <object>(played => _event.ShouldBeSameAs(played)); }
public void RegisterStronglyTypedNullHandlerHasExpectedResult() { Should.Throw <ArgumentNullException>(() => _sut.Register <object>(null)); }