using Xunit; using analyzeJSON; namespace analyzeJSONTests { public class StatisticsIntegrationTests { private static readonly string testFile = @"testFiles/complex.json"; [Fact] public void RunStatistics_withTraverse() { var test = new AnalyzeJSON(testFile); var stats = new Statistics(); var status = test.Traverse((token) => stats.RunStatistics(token)); Assert.True(status.Success); Assert.Empty(status.Message); Assert.Equal(10, stats.Result.NodeCounts.Count); Assert.Equal(165, stats.Result.TotalWordCount); } } }