public AllTests() { var groupSections = TestSections.Get(TestApplication.DefaultTestAssemblies()).ToList(); for (var i = 0; i < groupSections.Count; ++i) { var groupSection = groupSections[i]; var testSections = groupSection.ToList(); // the children var testGroup = new TestGroup( uniqueId: "Group-" + i, title: groupSection.Text, subtitle: string.Format("{0} Tests", testSections.Count), imagePath: "Assets/DarkGray.png", description: ""); // TODO: add a Description field to tests. AllGroups.Add(testGroup); for (var j = 0; j < testSections.Count; ++j) { var testSection = groupSection[j]; var testItem = new TestItem( uniqueId: string.Format("Group-{0}-Item-{1}", i, j), title: testSection.Text, subtitle: "", imagePath: "Assets/LightGray.png", description: "", content: "Hello!", group: testGroup, getControl: () => GetControl(testSection)); testGroup.Items.Add(testItem); } } }