Commit 0755375
Significantly improve ReactiveUI.Uno test coverage from 5.39% to 16.09% and migrate from Moq to NSubstitute (#266)
* Initial plan
* Initial assessment and plan for increasing ReactiveUI.Uno test coverage
Co-authored-by: glennawatson <[email protected]>
* Significantly improve ReactiveUI.Uno test coverage from 5.39% to 14.86%
Co-authored-by: glennawatson <[email protected]>
* Add comprehensive tests for BooleanToVisibilityHint, ActivationHelper, and expand coverage significantly
Co-authored-by: glennawatson <[email protected]>
* Significantly expand test coverage with comprehensive edge cases and platform tests - 70 total tests
Co-authored-by: glennawatson <[email protected]>
* Replace Moq with NSubstitute and fix build environment
Co-authored-by: glennawatson <[email protected]>
* Changes before error encountered
Co-authored-by: glennawatson <[email protected]>
* Update target frameworks and clean up test code
Added .NET 10 target frameworks to build properties and test projects for future compatibility. Updated Uno.Sdk version in global.json and upgraded ReactiveUI.SourceGenerators in SQLiteStudio sample. Removed redundant copyright/license headers from test files, replaced Assert.Multiple with Assert.EnterMultipleScope for NUnit 4 compatibility, and removed unnecessary System.Private.Uri package reference.
* Skip UI tests in headless environments
Added SetUp methods to test classes to detect and skip tests when no UI context is available, preventing failures in headless environments. This improves test reliability across different CI and local setups.
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: glennawatson <[email protected]>
Co-authored-by: Chris Pulman <[email protected]>1 parent 047736a commit 0755375
File tree
23 files changed
+9435
-38
lines changed- Samples/ReactiveUI.Uno.SQLiteStudio
- src
- ReactiveUI.Uno.Tests
- Activation
- Bootstrapping
- Builder
- Controls
- Converters
- Helpers
- Observable
- Platform
- ReactiveUI.Uno.Tests
- Resources
- Schedulers
- Storage
- ReactiveUI.Uno
- Properties
23 files changed
+9435
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | | - | |
19 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
23 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| |||
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
39 | | - | |
| 45 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
0 commit comments