public void EventShouldSupportUnbinding()
 {
     var testSubject = new TestableEvent<int>();
     testSubject.BindTo(_Target);
     testSubject.Call(5);
     testSubject.UnbindFrom(_Target);
     testSubject.IsBoundTo(_Target).Should().BeFalse();
     testSubject.Call(9);
     _arg.Should().Be(5);
 }
        public void EventShouldSupportUnbinding()
        {
            var testSubject = new TestableEvent <int>();

            testSubject.BindTo(_Target);
            testSubject.Call(5);
            testSubject.UnbindFrom(_Target);
            testSubject.IsBoundTo(_Target).Should().BeFalse();
            testSubject.Call(9);
            _arg.Should().Be(5);
        }
 public void EventShouldSupportRegistrationOfHandlersThatCanBeQueried()
 {
     var testSubject = new TestableEvent<int>();
     _arg = -1;
     testSubject.BindTo(_Target);
     _arg.Should().Be(-1);
     testSubject.Call(3);
     _arg.Should().Be(3);
 }
        public void EventShouldSupportRegistrationOfHandlersThatCanBeQueried()
        {
            var testSubject = new TestableEvent <int>();

            _arg = -1;
            testSubject.BindTo(_Target);
            _arg.Should().Be(-1);
            testSubject.Call(3);
            _arg.Should().Be(3);
        }