public void UIComponentMetadata_Get_WhenTargetSelfAndChildrenIsTrue()
        {
            var attribute = new FindSettingsAttribute {
                TargetSelfAndChildren = true
            };

            Declared.Add(attribute);

            _metadata.Get <FindSettingsAttribute>()
            .Should().Be(attribute);
        }
        public void UIComponentMetadata_Get_WhenTargetSelfAndChildrenIsFalse_AtParentComponentLevel()
        {
            var attribute = new FindSettingsAttribute {
                TargetSelfAndChildren = false
            };

            ParentComponent.Add(attribute);

            _metadata.Get <FindSettingsAttribute>()
            .Should().BeNull();
        }
        public void UIComponentMetadata_Get_WhenTargetSelfIsFalse()
        {
            var attribute = new FindSettingsAttribute {
                TargetSelf = false
            };

            Declared.Add(attribute);

            _metadata.Get <FindSettingsAttribute>()
            .Should().BeNull();
        }
        public void UIComponentMetadata_Push_Single()
        {
            Assembly.Add(new FindSettingsAttribute {
            });

            var pushed = new FindSettingsAttribute {
            };

            _metadata.Push(pushed);

            _metadata.DeclaredAttributes.
            Should().BeSameSequenceAs(pushed);

            _metadata.GetAll <FindSettingsAttribute>().
            Should().BeSameSequenceAs(pushed, Assembly[0]);

            _metadata.Get <FindSettingsAttribute>().
            Should().BeSameAs(pushed);
        }