public void FindByTreeBruteForcePersonOnePastLast() { FindObjectInArray finder = new FindObjectInArray(); string targetName = "Person" + (finder.ListSize + 1); finder.PopulatePeopleList(); Person p = finder.FindByManualParallelTasksByProcessorCount(targetName); p.Should().BeNull(); }
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); }