Repository navigation
Commit e943786
committed
Skip the extension scan when the host assembly has no location
In an Android Release build the engine is packed inside the APK, so its
Assembly.Location is empty. FindExtensionAssemblies passed
Path.GetDirectoryName("") (null) to Path.Combine, which threw
ArgumentNullException before any test could run (#1966). An assembly that
is not a file has no folders around it to search, so the scan now returns
early.1 parent 2a2f8f7 commit e943786
2 files changed
Lines changed: 22 additions & 0 deletions
File tree
- src/NUnitEngine
- nunit.engine.core.tests/Services
- nunit.engine.core/Services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
154 | 168 | | |
155 | 169 | | |
156 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
168 | 176 | | |
169 | 177 | | |
170 | 178 | | |
| |||
0 commit comments