public void GoToThrowsExceptionWithNullBrowserTest() { IBrowser target = null; var location = new Uri("https://google.com"); Action action = () => target.GoTo(location); action.ShouldThrow<ArgumentNullException>(); }