public async Task Statistics_can_be_generated_for_valid_file() { var jsonTreeWriter = new JsonTreeWriter(null, @"Data\\Processed tree.json"); var trees = await jsonTreeWriter.ReadAllAsync(); var treeStatistics = treeAnalyser.GenerateStatistics(trees); Assert.NotNull(treeStatistics); }
public async Task Empty_tree_results_in_non_null_stats() { var jsonTreeWriter = new JsonTreeWriter(null, string.Empty); var trees = await jsonTreeWriter.ReadAllAsync(); var treeStatistics = treeAnalyser.GenerateStatistics(trees); Assert.NotNull(treeStatistics); }
public async Task Invalid_locations_raise_flag() { var jsonTreeWriter = new JsonTreeWriter(null, @"Data\\Processed tree.json"); var trees = await jsonTreeWriter.ReadAllAsync(); var treeStatistics = treeAnalyser.GenerateStatistics(trees); Assert.True(treeStatistics.LocationIssuesExist); }