public void SelectPreviousNextCommandsCallNoChildrenTest() { CodeFlow codeFlow = SarifUtilities.CreateSingleThreadedCodeFlow(new[] { new ThreadFlowLocation { NestingLevel = 0, }, }); var analysisStep = new AnalysisStep(CodeFlowToTreeConverter.Convert(codeFlow, run: null, resultId: 0, runIndex: 0)); analysisStep.SelectedItem = analysisStep.TopLevelNodes[0]; analysisStep.FindPrevious().Should().Be(analysisStep.TopLevelNodes[0]); analysisStep.FindNext().Should().Be(analysisStep.TopLevelNodes[0]); }