Пример #1
0
        public void Should_remember_current_method()
        {
            var handler = new TestHandler();
            IMethod activeMethod = null;
            handler.OnBeginMethod = x => activeMethod = x;

            var method = new MethodStub("DoStuff");
            handler.BeginMethod(method);

            activeMethod.ShouldBeSameAs(method);
        }