public void when_element_is_not_rss() { Assert.Throws <ArgumentException>(() => RSS.Build(XElement.Parse("<i></i>"))); }
public async Task <RSS> GetRSSAsync(string rssUrl) { var rssStream = await _httpClient.GetStreamAsync(rssUrl); return(RSS.Build(XElement.Load(rssStream))); }
public void when_element_is_null() { Assert.Throws <ArgumentNullException>(() => RSS.Build(null)); }
public RSS BuildRSS() => RSS.Build(StaticData.Rss);