public void Toggling_Selection_After_Range_Should_Work() { var target = new TestSelector { Items = new[] { "foo", "bar", "baz", "foo", "bar", "baz" }, Template = Template(), SelectedIndex = 0, SelectionMode = SelectionMode.Multiple, }; target.ApplyTemplate(); target.Presenter.ApplyTemplate(); target.SelectRange(3); Assert.Equal(new[] { 0, 1, 2, 3 }, SelectedContainers(target)); target.Toggle(4); Assert.Equal(new[] { 0, 1, 2, 3, 4 }, SelectedContainers(target)); }