public void IndexedByItem() { IAssetReferenceService service = (IAssetReferenceService)package.GetService(typeof(IAssetReferenceService), true); service.Add(new MockObjects.MockReference("AddService", "/Solution/Services")); service.Add(new MockObjects.MockReference("AddService", "/Solution/Services/Accounting")); service.Add(new MockObjects.MockReference("AddService", "/Solution/BusinessLayer")); service.Add(new MockObjects.MockReference("AddBusinessAction", "/Solution/BusinessLayer")); Assert.AreEqual(service.Find(typeof(IndexerBoundTarget), "/Solution/Services/Accounting").Length, 1); Assert.AreEqual(service.Find(typeof(IndexerBoundTarget), "/Solution/BusinessLayer").Length, 2); }