I see a pattern in all my code, where the lambda expression is shown as not covered in the code scope, the debugger MUST go through the code and there are no conditional blocks.
public CollectionModel() { List<Language> languages = LanguageService.GetLanguages(); this.LanguageListItems = languages.Select( s => new SelectListItem { Text = s.Name, Value = s.LanguageCode, Selected = false }). // <-- this shows as not covered AsEnumerable(); }
This is somewhat strange. Any ideas?
c # lambda unit-testing code-coverage
Rod johnson
source share