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(11, stats.Result.NodeCounts.Count); Assert.Equal(168, stats.Result.TotalWordCount); } } }