public void DisposeInstanceHtmlSelector() { // Arrange _htmlSelector = new HtmlSelector(new Uri("https://www.instagram.com/")); // Action _htmlSelector.Dispose(); // Assert Assert.Throws <ObjectDisposedException>(() => _htmlSelector.Run()); }
public void DoubleInvokeRunOnWebSite() { // Arrange _htmlSelector = new HtmlSelector(new Uri("https://www.instagram.com/")); // Action _htmlSelector.Run(); // Assert Assert.Throws <NotSupportedException>(() => _htmlSelector.Run()); }
public BritishHorseracingWebReader(IHtmlSelector selector) { _selector = selector; }
public WebPageParser(IHtmlSelector htmlSelector) { _htmlSelector = htmlSelector; }