title: Test Angular 2 Component with Constructor Parameter
body: <p>Say I have an Angular 2 Component with two input parameters:</p>
  
  <pre><code>@Component{... (omitted for clarity)}
  export class SomeComponent {
  
  @Input() a: number
  @Input() b: number
  
  }
  </code></pre>
  
  <p>When I want to test this component I have something like:</p>
  
  <pre><code>  beforeEach(async(() =&gt; {
      TestBed.configureTestingModule({
        declarations: [
          SomeComponent,
        ],
      })
      .compileComponents();
    }));
  
    beforeEach(() =&gt; {
      fixture = TestBed.createComponent(SomeComponent);
      component = fixture.componentInstance;
      fixture.detectChanges();
    });
  </code></pre>
  
  <p>The <code>createComponent</code> call does not take any parameters or allow me to call the constructor. How can I instantiate/test the component for various number values?</p>