Repository navigation
Optimize and expand unit tests - #10
Merged
Merged
Conversation
Add boundary, failure-path and edge-case tests across the core, WPF and EntityFramework unit test projects, and tidy a few existing tests. Only test files and test support helpers changed; no source or package changes.
jellebuning
commented
Oct 22, 2026
Turn the row title test into a theory so it also checks a name other than Anna.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Audit and expansion of the unit test suite. Existing tests were already isolated (fixed clock, per-test temp folders, no sleeps), so the work focuses on boundary values, failure paths and edge cases, plus a few small cleanups. No source code, project files or packages changed.
What changed
HourMinuteJsonConverterandMementoPaths(new),JsonSettingsStore(empty, null, non-object and corrupt files, locked file, failed save),TaskService(storage failures, unknown id, limits, edits that only change tags or time),TaskItem,HotkeyManager(fallback and retry paths), deadline reminder boundaries, service registration.TaskRowViewModel(new), hotkey text, overlay list/navigation/editing view models, settings view model.TestParsertakes an optionalnow,TempDataDirectoryalso removes a file that blocks the data folder.Test counts: Core 96 -> 307, EntityFramework 29 -> 70, Memento.UnitTests 82 -> 204.
How it was tested
dotnet build --configuration Release: 0 warnings, 0 errorsdotnet test --project <each *.UnitTests.csproj> --configuration Release, run twice with identical results: all 581 tests passtests/changedNot run / not covered
tests/Memento.UiTests(needs an interactive desktop).Closes #9