public void Test_FocusNavigator_OnlyOneItemShouldBeFocusedAtATime() { var input = GetMockData(); var focusNavigator = new FocusNavigator(input); focusNavigator.NavigateToNext(); focusNavigator.NavigateToNext(); Assert.IsTrue(input.Count(x => x.IsFocused) == 1); }
public void Test_FocusNavigator_Navigate_2() { var input = GetMockData(); var focusNavigator = new FocusNavigator(input); focusNavigator.NavigateToNext(); focusNavigator.NavigateToNext(); Assert.IsTrue(input[2].IsFocused); }