public SyntaxBuilderWithContextTest()
        {
            this.behaviorProviders = new Queue <Func <object, IBehavior <ICustomExtension> > >();

            this.syntaxBuilder   = A.Fake <ISyntaxBuilderWithoutContext <ICustomExtension> >();
            this.endWithBehavior = this.syntaxBuilder.As <IEndWithBehavior <ICustomExtension> >();

            this.testee = new SyntaxBuilderWithContext <ICustomExtension, object>(this.syntaxBuilder, this.behaviorProviders);
        }
예제 #2
0
        public void End_ShouldDelegateToInternal()
        {
            IEndWithBehavior <ICustomExtension> result = this.testee.End;

            this.syntaxBuilder.Verify(b => b.End);
        }
        public void End_ShouldDelegateToInternal()
        {
            IEndWithBehavior <ICustomExtension> result = this.testee.End;

            A.CallTo(() => this.syntaxBuilder.End).MustHaveHappened();
        }