public void In_case_I_get_503_error_parser_should_not_fail() { var grabberMock = new GrabberMock503(); var parser = new ParserToShow(grabberMock); Assert.ThrowsException <Exception>(() => parser.Start("https://httpstat.us/503")); }
public void In_case_I_get_503_error_parser_should_not_fail() { var inputHtml = "<html>.....<div clas='listing-item-title'>"; var grabberMock = new GrabberMock503(); var parser = new ParserToShow(grabberMock); Assert.ThrowsException <Exception>(() => parser.Start("https://httpstat.us/503")); }