public void ShouldThrowExceptionWhenCheckingSelectorPrerequisitesWithNullDriver() { // Given // When Action action = () => WebDriverExtensions.CheckSelectorPrerequisites(null, null); // Then var ex = Assert.Throws <ArgumentNullException>(action); Assert.Equal("driver", ex.ParamName); }