public void ShouldBeAbleToUseDo()
        {
            Action <MyClass> action = x => x.DoSomething();

            using (mocks.Record())
            {
                operable.Expect(x => x.ObjectBuilder).Return(objectBuilder);
                objectBuilder.Expect(x => x.Do(action)).Return(objectBuilder);
            }

            OperableExtensions.Do((IOperable <MyClass>)operable, action);
        }
Exemplo n.º 2
0
        public void ShouldBeAbleToUseDo()
        {
            Action <MyClass> action = x => x.DoSomething();


            {
                operable.ObjectBuilder.Returns(objectBuilder);
                objectBuilder.Do(action).Returns(objectBuilder);
            }

            OperableExtensions.Do((IOperable <MyClass>)operable, action);
        }