Add error handling to ProductsGrid.DataGridView_CellContentClick

This commit is contained in:
Michael Bucari-Tovo 2022-06-23 22:32:43 -06:00
parent 76b5e09f72
commit b65875386d
3 changed files with 51 additions and 49 deletions

View file

@ -185,11 +185,11 @@ namespace FileLiberator.Tests
}
};
var flatChapters = DownloadDecryptBook.getChapters(hierarchicalChapters).OrderBy(c => c.StartOffsetMs).ToArray();
var flatChapters = DownloadDecryptBook.flattenChapters(hierarchicalChapters);
flatChapters.Length.Should().Be(flatChapters.Length);
flatChapters.Count.Should().Be(expected.Length);
for (int i = 0; i < flatChapters.Length; i++)
for (int i = 0; i < flatChapters.Count; i++)
{
flatChapters[i].Title.Should().Be(expected[i].Title);
flatChapters[i].StartOffsetMs.Should().Be(expected[i].StartOffsetMs);