Esempio n. 1
0
        public void GetActiveValueClusterTest()
        {
            var test = new ValueClusterCollection(200);

            Assert.AreEqual(BuildValueClustersResult.ListFilled, test.BuildValueClusters(m_DataView, typeof(string), 0));
            Assert.AreEqual(0, test.GetActiveValueCluster().Count());
            foreach (var item in test.ValueClusters)
            {
                item.Active = true;
            }
            Assert.AreEqual(test.ValueClusters.Count(), test.GetActiveValueCluster().Count());
        }
        public void GetActiveValueClusterTest()
        {
            var data     = UnitTestStatic.GetDataTable(200);
            var dataview = new DataView(data, null, null, DataViewRowState.CurrentRows);

            var test0a = new ValueClusterCollection();

            Assert.AreEqual(BuildValueClustersResult.ListFilled, test0a.BuildValueClusters(dataview, typeof(string), 0, 200));
            Assert.AreEqual(0, test0a.GetActiveValueCluster().Count());
            foreach (var iten in test0a.ValueClusters)
            {
                iten.Active = true;
            }
            Assert.AreEqual(test0a.ValueClusters.Count(), test0a.GetActiveValueCluster().Count());
        }