示例#1
0
        public void InsertCellTest()
        {
            int[][]         cellData = new int[][] { new[] { 0 }, new[] { 2 }, new[] { 3 } };
            Partition       p        = new Partition(cellData);
            SortedSet <int> cell     = new SortedSet <int>();

            cell.Add(1);
            p.InsertCell(1, cell);
            Assert.IsTrue(p.IsDiscrete());
        }
示例#2
0
        public void IsDiscreteTest()
        {
            int       size = 5;
            Partition p    = new Partition();

            for (int i = 0; i < size; i++)
            {
                p.AddSingletonCell(i);
            }
            Assert.IsTrue(p.IsDiscrete());
        }