public void GetTagsTakesFromBoth() { var tags = container.GetTags <Tag1>(); Assert.AreEqual(2, tags.Count()); var tagTypes = tags.Select(t => t.GetType()); Assert.That(tagTypes, Is.EquivalentTo(new Type[] { typeof(SubTag1Of1), typeof(SubTag2Of1) })); }
public void StartsEmpty() { Assert.IsEmpty(container.GetTags <object>()); }
public IEnumerable <TTag> GetTags <TTag>() where TTag : class => tagContainer.GetTags <TTag>();
public IEnumerable <TTag> GetTags <TTag>() where TTag : class => main.GetTags <TTag>().Union(fallback.GetTags <TTag>());
public IEnumerable <TTag> GetTags <TTag>() where TTag : class => extension.GetTags <TTag>().Union(parent.GetTags <TTag>());