public void TestCStyleFuncDecl()
{
string filename = "cstylefuncs.c"; // this is deployed through local.testsettings
SortedListener listener = new SortedListener(10, new List<string>(), 0);
using (StreamReader stream = new StreamReader(filename))
{
FileAnalyzer analyzer = new FileAnalyzer(stream, listener, null, true, filename);
analyzer.Analyze();
Assert.AreEqual(3, listener.Metrics.Count);
Assert.IsNotNull(IntegrationTests.GetByName(listener.Metrics, "added"));
Assert.IsNotNull(IntegrationTests.GetByName(listener.Metrics, "new_cfg_record"));
Assert.IsNotNull(IntegrationTests.GetByName(listener.Metrics, "edit_cfg_record"));
}
}