Пример #1
0
        public void TestAcmIcpcTeamSolution(int numberOfPeople, int numberOfTopics, List<int[]> people)
        {
            // arrange
            HackerRank.Solutions.Implementation.AcmIcpcTeam.Solution solution = new HackerRank.Solutions.Implementation.AcmIcpcTeam.Solution();
            int currentMaxKnownTopics;
            int teamsThatKnownCurrentMax;

            // act
            solution.GetMaxTopicsAndTeamsThatKnownMax(numberOfPeople, numberOfTopics, people, out currentMaxKnownTopics, out teamsThatKnownCurrentMax);

            // assert
            NUnit.Framework.Assert.AreEqual(currentMaxKnownTopics, 5);
            NUnit.Framework.Assert.AreEqual(teamsThatKnownCurrentMax, 2);
        }
Пример #2
0
        public void TestAcmIcpcTeamSolution(int numberOfPeople, int numberOfTopics, List <int[]> people)
        {
            // arrange
            HackerRank.Solutions.Implementation.AcmIcpcTeam.Solution solution = new HackerRank.Solutions.Implementation.AcmIcpcTeam.Solution();
            int currentMaxKnownTopics;
            int teamsThatKnownCurrentMax;

            // act
            solution.GetMaxTopicsAndTeamsThatKnownMax(numberOfPeople, numberOfTopics, people, out currentMaxKnownTopics, out teamsThatKnownCurrentMax);

            // assert
            NUnit.Framework.Assert.AreEqual(currentMaxKnownTopics, 5);
            NUnit.Framework.Assert.AreEqual(teamsThatKnownCurrentMax, 2);
        }