public void CompileWithNullSelectorThrows() { var e = Assert.Throws <ArgumentNullException>(() => HtmlNodeSelection.Compile(null)); Assert.That(e.ParamName, Is.EqualTo("selector")); }
public void QuerySelectorAllWithNullNodeThrows() { var e = Assert.Throws <ArgumentNullException>(() => HtmlNodeSelection.QuerySelectorAll(null, "body")); Assert.That(e.ParamName, Is.EqualTo("node")); }
public void Issue3() { void Test() => HtmlNodeSelection.CachableCompile("p"); Test(); var thread = new Thread(Test); thread.Start(); thread.Join(); }