コード例 #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);
        }