Пример #1
0
        public void ContainsGenericComponentInterface1()
        {
            IComposable container = new ComposableDefault(
                new TestUpdatableComponent()
                );

            bool result = container.ContainsComponent <IUpdatable>();

            Assert.IsTrue(result);
        }
Пример #2
0
        public void ContainsComponentNested()
        {
            IComposable container = new ComposableDefault(
                new TestNestedComponent()
                );

            bool result = container.ContainsComponent(typeof(TestComponent));

            Assert.IsTrue(result);
        }
Пример #3
0
        public void ContainsGenericComponent2()
        {
            IComposable container = new ComposableDefault(
                new TestUpdatableComponent()
                );

            bool result = container.ContainsComponent <TestComponent>();

            Assert.IsTrue(result == false);
        }
Пример #4
0
        public void ContainsComponentInterface2()
        {
            IComposable container = new ComposableDefault(
                new TestComponent()
                );

            bool result = container.ContainsComponent(typeof(IUpdatable));

            Assert.IsTrue(result == false);
        }