public void CheckTableConsistence_DoesNotThrow(string file, string xpath) { using (var conn = new AutoCheck.Core.Connectors.Html(GetSampleFile(file))) Assert.DoesNotThrow(() => conn.ValidateTable(xpath)); }
public void CheckTableConsistence_Throws_TableInconsistencyException(string file, string xpath) { //TODO: check for rowspan consistency using (var conn = new AutoCheck.Core.Connectors.Html(GetSampleFile(file))) Assert.Throws <TableInconsistencyException>(() => conn.ValidateTable(xpath)); }