Пример #1
0
        public void FindByTreeBruteForcePersonOnePastLast()
        {
            FindObjectInArray finder     = new FindObjectInArray();
            string            targetName = "Person" + (finder.ListSize + 1);

            finder.PopulatePeopleList();
            Person p = finder.FindByManualParallelTasksByProcessorCount(targetName);

            p.Should().BeNull();
        }
Пример #2
0
        public void FindByTreeBruteForcePerson99()
        {
            string            targetName = "Person99";
            FindObjectInArray finder     = new FindObjectInArray();

            finder.PopulatePeopleList();
            Person p = finder.FindByManualParallelTasksByProcessorCount(targetName);

            p.Should().NotBeNull();
            p.Name.Should().Be(targetName);
        }