public void Valid(string pageSource) { var command = new IsJsonCommand {Test = new SeleniteTest()}; var driver = new WebClientDriver { PageSource = pageSource, }; command.Execute(driver, null); }
public void Invalid(string pageSource) { var command = new IsJsonCommand { Test = new SeleniteTest() }; var driver = new WebClientDriver { PageSource = pageSource, }; Assert.Throws<JsonReaderException>(() => command.Execute(driver, null)); }