private static void Test(ILogParser parser) { var expectedResult = new Dictionary <string, int> { { "46.17.203.253", 25060434 }, { "213.24.62.119", 23502468 }, { "91.208.121.254", 20443768 }, { "46.17.201.50", 15585076 }, { "46.17.201.58", 12967906 }, { "195.234.190.100", 12378304 }, { "195.43.90.253", 10469620 }, { "195.130.216.202", 9731071 }, { "194.186.187.146", 7748171 }, { "194.190.140.73", 7322802 } }; const string logPath = "Files/ips.txt"; var result = parser.GetTop10Users(logPath); CollectionAssert.AreEqual(expectedResult, result); }
private static void Test(ILogParser parser) { var expectedResult = new Dictionary <string, int> { { "213.24.62.119", 40475776 }, { "91.208.121.254", 38198276 }, { "46.17.201.50", 27744726 }, { "46.17.203.253", 27313932 }, { "46.17.201.58", 24282986 }, { "195.234.190.100", 22713210 }, { "195.43.90.253", 18936533 }, { "195.130.216.202", 18237678 }, { "92.50.171.106", 15146850 }, { "194.190.140.73", 14623515 } }; const string logPath = "Files/ips.txt"; var result = parser.GetTop10Users(logPath); CollectionAssert.AreEqual(expectedResult, result); }