public void ShouldThrowExceptionForAddingDriverToControlWithNameThatHasNoMapping() { IControllableBean bean = new ControllableBean(); Mock<IWebDriver> driver = new Mock<IWebDriver>(); bean.SetControlDriver("name", driver.Object); }