예제 #1
0
        public void Subscribes_to_Event() {
            var withEvent = Isolate.Fake.Instance<WithEvent>();
            var sut = new Sut(withEvent);

            sut.DoSomething();

            Isolate.Verify.WasCalledWithAnyArguments(() => withEvent.MyEvent += null);
        }
예제 #2
0
        public void Subscribes_to_Event() {
            var withEvent = Mock.Create<WithEvent>();
            var sut = new Sut(withEvent);

            sut.DoSomething();

            Mock.AssertSet(() => withEvent.MyEvent += null, Args.Ignore());
        }