12345678910111213141516171819202122 |
- using Xunit;
- using analyzeJSON;
- namespace analyzeJSONTests
- {
- public class AnalyzeStructureIntegrationTests
- {
- private static readonly string testFile = @"testFiles/complex.json";
- [Fact]
- public void AnalyzeToken_withTraverse()
- {
- var test = new AnalyzeJSON(testFile);
- var analyze = new AnalyzeStructure();
- test.Traverse((token) => analyze.AnalyzeToken(token));
- var result = analyze.Result;
- Assert.Equal(9, result.Nodes.Count);
- Assert.Equal(10, result.Leafs.Count);
- }
- }
- }
|