public void Test1() { var engine = new WikipediaEngine(); TestDelegate td = () => engine.GetResults("xxx").GetAwaiter().GetResult(); Assert.DoesNotThrow(td); }
public void GetResults_ShouldNotThrow() { var engine = new WikipediaEngine(); AsyncTestDelegate td = async() => await engine.GetSearchResults("xxx"); Assert.DoesNotThrowAsync(td); }