public ProfilerData(string filename, IProfilerDataParser parser, IContextChangeFinder finder, decimal compressRatio) { _assembler = new TestRunInfoAssembler(finder); _database = new TestRunInformationDatabase(filename); _counts = new CouplingCountAndNameProjection(); _finder = finder; _filename = filename; _parser = parser; _compressRatio = compressRatio; }
public void Setup() { var assembler = new TestRunInfoAssembler(); var entries = new[] { new ProfilerEntry {Type = ProfileType.Enter, Functionid = 3, Method = "Test1", Runtime = "Test", Sequence = 1, IsTest = true, Time=.0001}, new ProfilerEntry {Type = ProfileType.Enter, Functionid = 4, Method = "Method1", Runtime = "RMethod", Sequence = 2, Time=.0002}, new ProfilerEntry {Type = ProfileType.Leave, Functionid = 4, Method = "Method1", Runtime = "RMethod", Sequence = 3, Time=.0003}, new ProfilerEntry {Type = ProfileType.Leave, Functionid = 3, Method = "Test1", Runtime = "Test", Sequence = 4, Time=.0004}, new ProfilerEntry {Type = ProfileType.Enter, Functionid = 1, Method = "Teardown", Runtime = "Teardown", Sequence = 5, IsTeardown = true, Time=.0005}, new ProfilerEntry {Type = ProfileType.Leave, Functionid = 1, Method = "Teardown", Runtime = "Teardown", Sequence = 6, Time=.0006}, }; items = assembler.Assemble(entries).ToList(); }