public void Compose() { var component = new SingletonComponent <ITestComponent, TestComponent>(); var composeResultA = component.Compose(this.Composer, false, this.ConstructorSelector); var composeResultB = component.Compose(this.Composer, false, this.ConstructorSelector); Assert.Equal(composeResultA, composeResultB); }
public void Dispose() { var component = new SingletonComponent <ITestComponent, TestComponent>(); component.Dispose(); Assert.Throws <ObjectDisposedException>( () => component.Compose(this.Composer, false, this.ConstructorSelector)); }
public void ComposeWithNullComposer() { Assert.Throws <ArgumentNullException>( () => { var component = new SingletonComponent <ITestComponent, TestComponent>(); component.Compose(null, false, this.ConstructorSelector); }); }