public void TestSelectOneLine1() { var logFile = new InMemoryLogSource(_columns); logFile.AddEntry("Hello", LevelFlags.Other); logFile.AddEntry("World", LevelFlags.Other); _control.LogSource = logFile; _control.UpdateVisibleSection(); _control.UpdateVisibleLines(); _control.SelectedIndices.Should().BeEmpty(); _mouse.MoveRelativeTo(_control, new Point(20, 8)); _control.RaiseEvent(new MouseButtonEventArgs(Mouse.PrimaryDevice, Environment.TickCount, MouseButton.Left) { RoutedEvent = UIElement.MouseLeftButtonDownEvent }); _control.SelectedIndices.Should().Equal(new LogLineIndex(0)); }