title: Run WebDriver NUnit tests on multiple drivers with [TestFixture]
body: <p>Not sure what I'm doing wrong here. I'm trying to learn webdriver and c#. 
  When I run this test in nunit, it gives me the following error </p>
  
  <p>TestPage.TestSetup(Chrome).TestPage:
  TestPage.TestSetup does not have a suitable constructor</p>
  
  <p>Here is my code so far. </p>
  
  <pre><code>namespace TestPage 
  { 
      [TestFixture(Browser.Firefox)]
      [TestFixture(Browser.Chrome)]
      [TestFixture(Browser.IE)]
      public class TestSetup : SetUps 
      {
        /* [TestCase(Browser.Firefox)]   // This solves the issue but that creates a lot of duplicates.
          [TestCase(Browser.Chrome)]
          [TestCase(Browser.IE)]*/
          [Test]
          public void TestPage(Browser browser)
          {
  
              driver = GetWebDriverForBrowser(browser); 
              driver.Navigate().GoToUrl(baseURL);
              ...
          }
  
      }
  }   
  
  
    namespace SetUps
      {
          public class SetUps
          {
              protected IWebDriver driver;
              protected StringBuilder verificationErrors;
              protected string baseURL;
  
              [SetUp]
              public void SetupTest()
              {
                  baseURL = "www.ggogle.com";
                  verificationErrors = new StringBuilder();
              }
  
              [TearDown]
              public void TeardownTest()
              {
                  try
                  {
                      driver.Quit();
                  }
                  catch (Exception)
                  {
                      // Ignore errors if unable to close the browser
                  }
                  Assert.AreEqual("", verificationErrors.ToString());
              }
              public enum Browser
              {
                  Chrome,
                  Firefox,
                  IE
              }
              public IWebDriver GetWebDriverForBrowser(Browser browser)
              {
                  IWebDriver driver = null;
  
                  switch (browser)
                  {
                      case Browser.Chrome:
                          driver = new ChromeDriver(@"C:\repos\Testing\Tests");
                          break;
  
                      case Browser.Firefox:
                          driver = new FirefoxDriver();
                          break;
  
                      case Browser.IE:
                          driver = new InternetExplorerDriver(@"C:\repos\Testing\Tests");
                          break;
                  }
  
                  if (driver != null)
                  {
                      driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(30));
                  }
                  return driver;
              }
  
          }
      }
  </code></pre>
  
  <p>Got the idea from <a href="https://stackoverflow.com/questions/12372529/run-webdriver-nunit-tests-on-multiple-drivers">Run WebDriver NUnit tests on multiple drivers</a> </p>
  
  <p>But it doesn't seem to work for me.</p>