public void ParseTxtFile() { var parser = new TextFileParser(); var elements = parser.Parse("..\\..\\Parser\\Parser.UnitTests\\TestFiles\\LongFile.txt"); Assert.IsNotNull(elements); Assert.AreEqual(elements.Count, 987386); elements = parser.Parse("..\\..\\Parser\\Parser.UnitTests\\TestFiles\\NotSoLongFile.txt"); Assert.IsNotNull(elements); Assert.AreEqual(23945, elements.Count); }
public void ParseXAMLFile() { var parser = new TextFileParser(); var elements = parser.Parse("..\\..\\Parser\\Parser.UnitTests\\TestFiles\\SearchViewControl.xaml.txt"); Assert.IsNotNull(elements); Assert.AreEqual(205, elements.Count); foreach (var element in elements) { if (element.DefinitionLineNumber == 218) { Assert.AreEqual("</UserControl>", element.Name); } } }