private static DebuggerViewItem[] CreateDebugValue(InstanceProducer registration, KnownRelationship actualDependency, InstanceProducer[] possibleSkippedRegistrations) { return new[] { new DebuggerViewItem( name: "Registration", description: registration.ServiceType.ToFriendlyName(), value: registration), new DebuggerViewItem( name: "Actual Dependency", description: actualDependency.Dependency.ServiceType.ToFriendlyName(), value: actualDependency), new DebuggerViewItem( name: "Expected Dependency", description: possibleSkippedRegistrations.First().ServiceType.ToFriendlyName(), value: possibleSkippedRegistrations.Length == 1 ? (object)possibleSkippedRegistrations[0] : possibleSkippedRegistrations), }; }