public void FireEventFiresEventWithBasicArgs() { var vm = new ViewModelWithEvents(); vm.MonitorEvents(); vm.FireEventWithBasicArgs(); vm.ShouldRaise("EventWithBasicArgs").WithArgs <MyEventArgs>(a => true); }
public void FireEventFiresEventWithBasicArgsAndReturnsArgs() { var vm = new ViewModelWithEvents(); vm.EventWithBasicArgs += (s, e) => e.Passed = true; var retVal = vm.FireEventWithBasicArgs(); retVal.Passed.Should().BeTrue(); }