public IEnumerable <string> IterateAll() { foreach (var callChain in Setups) { foreach (var item in callChain.IterateAll()) { yield return(item); } } if (TestChain != null) { foreach (var item in TestChain.IterateAll()) { yield return(item); } } foreach (var callChain in Teardowns) { foreach (var item in callChain.IterateAll()) { yield return(item); } } }