public void CanGetBehaviors() { var cache = new ElementCache(new ISpecificationElement[] { ElementFixtures.Specification1, ElementFixtures.Behavior1Specification1, ElementFixtures.Behavior1Specification2, ElementFixtures.Behavior2Specification1, }); var behaviors = cache.GetBehaviors(ElementFixtures.Context).ToArray(); Assert.That(behaviors, Has.Length.EqualTo(2)); Assert.That(behaviors, Contains.Item(ElementFixtures.Behavior1)); Assert.That(behaviors, Contains.Item(ElementFixtures.Behavior2)); }