CreateBehaviorContext() public method

public CreateBehaviorContext ( IDescribable describable ) : IBehaviorContext
describable IDescribable
return IBehaviorContext
Beispiel #1
0
        public void CreateBehaviorContext_ShouldCreateBehaviorContext()
        {
            ExecutableContext testee = CreateTestee(Mock.Of <IDescribable>());

            var behaviorContext = testee.CreateBehaviorContext(Mock.Of <IDescribable>());

            testee.Behaviors.Should().NotBeEmpty()
            .And.HaveCount(1)
            .And.Contain(behaviorContext);
        }