Ejemplo n.º 1
0
        public void Test_LMRepository()
        {
            var listManager = new RepositoryListMan(fContext);

            Assert.IsNotNull(listManager);

            var repositoryRec = fContext.Tree.XRefIndex_Find("R1") as GDMRepositoryRecord;

            listManager.Fetch(repositoryRec);

            listManager.QuickFilter = "*";
            Assert.IsTrue(listManager.CheckFilter());
            listManager.QuickFilter = "*repos*";
            Assert.IsTrue(listManager.CheckFilter());
            listManager.QuickFilter = "*xxxx*";
            Assert.IsFalse(listManager.CheckFilter());

            var listView = Substitute.For <IListViewEx>();

            listManager.UpdateColumns(listView);
            var listItem = new GKListItem("", null);

            listManager.UpdateItem(0, listItem, repositoryRec);
        }
Ejemplo n.º 2
0
        public void Test_LMRepository()
        {
            var listManager = new RepositoryListMan(fContext);

            Assert.IsNotNull(listManager);

            GEDCOMRepositoryRecord repoRec = fContext.Tree.XRefIndex_Find("R1") as GEDCOMRepositoryRecord;

            listManager.Fetch(repoRec);

            listManager.QuickFilter = "*";
            Assert.IsTrue(listManager.CheckFilter());
            listManager.QuickFilter = "*repos*";
            Assert.IsTrue(listManager.CheckFilter());
            listManager.QuickFilter = "*xxxx*";
            Assert.IsFalse(listManager.CheckFilter());

            var lvMock = new ListViewMock();

            listManager.UpdateColumns(lvMock);
            var listItem = new GKListItem("", null);

            listManager.UpdateItem(0, listItem, repoRec);
        }