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