Commit ebed5ef
authored
fix unit tests (#167)
* Fix DeepCopier mock issue in unit tests
- Register DeepCopier service instance in TestKitSilo to prevent TestServiceProvider from auto-creating Mock
- Resolves System.NotSupportedException: Type to mock (DeepCopier) must be an interface error
- Tests now run properly, reduced from 20 failures to 10 failures out of 230 total tests
- Only modified test code, no business logic changes
* Fix Logger NullReferenceException in unit tests - Register NullLoggerFactory to prevent Mock Logger issues - Achieves 100% test pass rate - Resolves all mocking issues in test framework
* feat:update test yaml1 parent 20c1377 commit ebed5ef
2 files changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
106 | 112 | | |
107 | | - | |
| 113 | + | |
108 | 114 | | |
109 | | - | |
110 | | - | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
0 commit comments