public override TraceListenerCollection Create(int count = 0) { // TraceListenerCollection has an internal constructor // so we use a TraceSource to create one for us. var list = new TraceSource("Test").Listeners; list.Clear(); for (int i = 0; i < count; i++) { list.Add(CreateListener()); } return(list); }