public void Subscribes_to_Event() { var withEvent = Isolate.Fake.Instance<WithEvent>(); var sut = new Sut(withEvent); sut.DoSomething(); Isolate.Verify.WasCalledWithAnyArguments(() => withEvent.MyEvent += null); }
public void Subscribes_to_Event() { var withEvent = Mock.Create<WithEvent>(); var sut = new Sut(withEvent); sut.DoSomething(); Mock.AssertSet(() => withEvent.MyEvent += null, Args.Ignore()); }