public override IEnumerable <DebuggerViewItem> Attach() { var handlers = diagnostic.Inspect(); var items = Array.ConvertAll(handlers, DefaultComponentView); return(new[] { new DebuggerViewItem(name, "Count = " + items.Length, items) }); }
public override IEnumerable <DebuggerViewItem> Attach() { var handlers = diagnostic.Inspect(); var items = handlers.ConvertAll(DefaultComponentView); Array.Sort(items, (c1, c2) => c1.Name.CompareTo(c2.Name)); return(new[] { new DebuggerViewItem(name, "Count = " + items.Length, items) }); }
public void Doesnt_include_closed_versions_of_generic_handler() { Container.Register(Component.For(typeof(GenericImpl1 <>))); Container.Resolve <GenericImpl1 <A> >(); Container.Resolve <GenericImpl1 <B> >(); var handlers = diagnostic.Inspect(); Assert.AreEqual(1, handlers.Length); }