public void ObjectOfTypeIncludingAncestorsWithMoreThanOneObjectOfType() { Assert.Throws <NoSuchObjectDefinitionException>( () => ObjectFactoryUtils.ObjectOfTypeIncludingAncestors(_factory, typeof(ITestObject), true, true), "No unique object of type [Spring.Objects.ITestObject] is defined : Expected single object but found 4"); }
public void ObjectOfTypeIncludingAncestorsWithMoreThanOneObjectOfType() { ObjectFactoryUtils.ObjectOfTypeIncludingAncestors(_factory, typeof(ITestObject), true, true); }