public void ShouldBeAbleToUseAndToCallFunction()
        {
            using (mocks.Record())
                objectBuilder.Expect(x => x.Do(action)).Return(objectBuilder);

            using (mocks.Playback())
                SingleObjectBuilderExtensions.And(objectBuilder, action);
        }
        public void ShouldBeAbleToUseAnd()
        {
            using (mocks.Record())
                objectBuilder.Expect(x => x.With(func)).Return(objectBuilder);

            using (mocks.Playback())
                SingleObjectBuilderExtensions.And(objectBuilder, func);
        }
Пример #3
0
        public void ShouldBeAbleToUseAndToCallFunction()
        {
            objectBuilder.Do(action).Returns(objectBuilder);

            SingleObjectBuilderExtensions.And(objectBuilder, action);
        }
Пример #4
0
        public void ShouldBeAbleToUseAnd()
        {
            objectBuilder.With(func).Returns(objectBuilder);

            SingleObjectBuilderExtensions.And(objectBuilder, func);
        }