public void FindGenericByName(bool useCompiledXaml)
            {
                var layout = new GenericsTests(useCompiledXaml);
                var list   = layout.FindByName <List <Button> > ("myList");

                Assert.NotNull(list);
            }
            public void FindGenericByName(bool useCompiledXaml)
            {
                var layout = new GenericsTests(useCompiledXaml);
                var list   = layout.FindByName <List <Button> > ("myList");

                Assert.That(list, Is.Not.Null);
                Assert.That(list, Is.TypeOf <List <Button> >());

                var nestedGenericList = layout.TestListMember;

                Assert.That(nestedGenericList, Is.Not.Null);
                Assert.That(nestedGenericList, Is.TypeOf <List <KeyValuePair <string, string> > >());

                Assert.That(nestedGenericList.Count, Is.EqualTo(1));
            }