public void ContainsGenericComponentInterface1() { IComposable container = new ComposableDefault( new TestUpdatableComponent() ); bool result = container.ContainsComponent <IUpdatable>(); Assert.IsTrue(result); }
public void ContainsComponentNested() { IComposable container = new ComposableDefault( new TestNestedComponent() ); bool result = container.ContainsComponent(typeof(TestComponent)); Assert.IsTrue(result); }
public void ContainsGenericComponent2() { IComposable container = new ComposableDefault( new TestUpdatableComponent() ); bool result = container.ContainsComponent <TestComponent>(); Assert.IsTrue(result == false); }
public void ContainsComponentInterface2() { IComposable container = new ComposableDefault( new TestComponent() ); bool result = container.ContainsComponent(typeof(IUpdatable)); Assert.IsTrue(result == false); }