Skip to content

Commit 4547750

Browse files
committed
update unit tests
1 parent bc565ca commit 4547750

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/LogExpert.Persister.Tests/PersisterTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ public void RoundTrip_WithApplicationStartupDir_PreservesAllData ()
357357
MultiFile = true,
358358
MultiFilePattern = "test*.log",
359359
MultiFileMaxDays = 7,
360-
LineCount = 1000
360+
LineCount = 1000,
361+
CellSelectMode = true
361362
};
362363

363364
// Act
@@ -377,6 +378,7 @@ public void RoundTrip_WithApplicationStartupDir_PreservesAllData ()
377378
Assert.That(loadedData.MultiFilePattern, Is.EqualTo(originalData.MultiFilePattern), "MultiFilePattern should match");
378379
Assert.That(loadedData.MultiFileMaxDays, Is.EqualTo(originalData.MultiFileMaxDays), "MultiFileMaxDays should match");
379380
Assert.That(loadedData.LineCount, Is.EqualTo(originalData.LineCount), "LineCount should match");
381+
Assert.That(loadedData.CellSelectMode, Is.EqualTo(originalData.CellSelectMode), "CellSelectMode should match");
380382
}
381383

382384
[Test]

src/LogExpert.UI/Controls/LogWindow/LogWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ private bool LoadPersistenceOptions ()
24622462
AdjustHighlightSplitterWidth();
24632463
SetCurrentHighlightGroup(persistenceData.HighlightGroupName);
24642464

2465-
SetCellSelectionMode(persistenceData.CellSelectMode);
2465+
SetCellSelectionMode(persistenceData.CellSelectMode, true);
24662466

24672467
if (persistenceData.MultiFileNames.Count > 0)
24682468
{

0 commit comments

Comments
 (0)