File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/Adapter/MSTestAdapter.PlatformServices/Utilities Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -184,12 +184,9 @@ protected IEnumerable<DeploymentItem> GetSatellites(IEnumerable<DeploymentItem>
184
184
string satelliteDir = Path . GetDirectoryName ( satellite ) . TrimEnd (
185
185
new char [ ] { Path . DirectorySeparatorChar , Path . AltDirectorySeparatorChar } ) ;
186
186
187
- DebugEx . Assert ( ! StringEx . IsNullOrEmpty ( satelliteDir ) , "DeploymentManager.DoDeployment: got empty satellite dir!" ) ;
188
- DebugEx . Assert ( satelliteDir . Length > itemDir . Length + 1 , "DeploymentManager.DoDeployment: wrong satellite dir length!" ) ;
189
-
190
- string localeDir = satelliteDir . Substring ( itemDir . Length + 1 ) ;
191
- DebugEx . Assert ( ! StringEx . IsNullOrEmpty ( localeDir ) , "DeploymentManager.DoDeployment: got empty dir name for satellite dir!" ) ;
192
-
187
+ string localeDir = itemDir . Length > satelliteDir . Length
188
+ ? string . Empty
189
+ : satelliteDir . Substring ( itemDir . Length + 1 ) ;
193
190
string relativeOutputDir = Path . Combine ( item . RelativeOutputDirectory , localeDir ) ;
194
191
195
192
// Now finally add the item!
You can’t perform that action at this time.
0 commit comments