public void ContarNosCalleeTest() { const string diretorioExecucao = "Require"; var helper = new JavascriptHelper(Path.Combine(Environment.CurrentDirectory, diretorioExecucao), false, false); helper.ConfigurarGeracao(); var scriptCode = File.ReadAllText(Path.Combine(Environment.CurrentDirectory, diretorioExecucao, "global.js")); var astMoment = helper.GerarAst(scriptCode); File.WriteAllText("astMoment.txt", helper.FormatarStringJson(astMoment)); var nos = helper.ContarNosCallee(astMoment); Assert.AreEqual(592, nos.Count); }