Ejemplo n.º 1
0
        public void ContainsGenericComponentInterface1()
        {
            IComposable container = new ComposableDefault(
                new TestUpdatableComponent()
                );

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

            Assert.IsTrue(result);
        }
Ejemplo n.º 2
0
        public void ContainsComponentNested()
        {
            IComposable container = new ComposableDefault(
                new TestNestedComponent()
                );

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

            Assert.IsTrue(result);
        }
Ejemplo n.º 3
0
        public void ContainsGenericComponent2()
        {
            IComposable container = new ComposableDefault(
                new TestUpdatableComponent()
                );

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

            Assert.IsTrue(result == false);
        }
Ejemplo n.º 4
0
        public void ContainsComponentInterface2()
        {
            IComposable container = new ComposableDefault(
                new TestComponent()
                );

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

            Assert.IsTrue(result == false);
        }