public void ToString_TwoEntries() { var entry = new ServiceConfigurationEntry( typeof(IComparable), new ServiceImplementationInfo(typeof(int), LifetimeKind.Singleton, RegistrationType.Single), new ServiceImplementationInfo(typeof(string), LifetimeKind.InstancePerDependency, RegistrationType.Decorator)); Assert.That(entry.ToString(), Is.EqualTo( "System.IComparable implementations: [{System.Int32, Singleton, Single}, {System.String, InstancePerDependency, Decorator}]")); }
public void ToString_EmptyEntry() { var entry = new ServiceConfigurationEntry(typeof(IServiceProvider)); Assert.That(entry.ToString(), Is.EqualTo("System.IServiceProvider implementations: []")); }