Exemple #1
0
        public void AutoRandSingleTest()
        {
            string[]        papers      = GenerateRandData();
            AcademicJournal AcadJourObj = new AcademicJournal();

            AcadJourObj.DisplayPapersRankedJournals("papers", papers);
            AcadJourObj.DisplayPapersRankedJournals("rankedjournals", AcadJourObj.rankByImpact(papers));
            Console.WriteLine(""); Console.WriteLine("");
        }
Exemple #2
0
        public void AutoTest_SpecificCases()
        {
            AcademicJournal AcadJourObj = new AcademicJournal();

            string[]   papers1   = { "A.", "B. 0", "C. 1 0 3", "C. 2" };
            string[]   papers2   = { "RESPECTED JOURNAL.", "MEDIOCRE JOURNAL. 0", "LOUSY JOURNAL. 0 1", "RESPECTED JOURNAL.", "MEDIOCRE JOURNAL. 3", "LOUSY JOURNAL. 4 3 3 4", "RESPECTED SPECIFIC JOURNAL.", "MEDIOCRE SPECIFIC JOURNAL. 6", "LOUSY SPECIFIC JOURNAL. 6 7" };
            string[]   papers3   = { "NO CITATIONS.", "COMPLETELY ORIGINAL." };
            string[]   papers4   = { "CONTEMPORARY PHYSICS. 5 4 6 8 7 1 9", "EUROPHYSICS LETTERS. 9", "J PHYS CHEM REF D. 5 4 6 8 7 1 9", "J PHYS SOC JAPAN. 5 4 6 8 7 1 9", "PHYSICAL REVIEW LETTERS. 5 6 8 7 1 9", "PHYSICS LETTERS B. 6 8 7 1 9", "PHYSICS REPORTS. 8 7 1 9", "PHYSICS TODAY. 1 9", "REP PROGRESS PHYSICS. 7 1 9", "REV MODERN PHYSICS." };
            string[][] allpapers = { papers1, papers2, papers3, papers4 };

            for (int i = 0; i < allpapers.Count(); i++)
            {
                string[] rankedjournals = AcadJourObj.rankByImpact(allpapers[i]);
                AcadJourObj.DisplayPapersRankedJournals("allpapers[" + i + "]", allpapers[i]);
                AcadJourObj.DisplayPapersRankedJournals("rankedjournals", rankedjournals);
                Console.WriteLine(""); Console.WriteLine("");
            }
        }