public void DownloadFrame_returns_html_document() { var flow = new RestFlow().Post("<html></html>"); var html = Duo.DownloadFrame("tx", flow); Assert.Equal("<html></html>", html.DocumentNode.InnerHtml); }
public void DownloadFrame_throws_on_network_error() { var flow = new RestFlow().Post("", HttpStatusCode.BadRequest); Exceptions.AssertThrowsInternalError(() => Duo.DownloadFrame("tx", flow)); }