Esempio n. 1
0
        public void CombineKeywordLists3()
        {
            DataTable dt;

            dt = KeywordSummary.CombineKeywordLists(new DataTable[] { getKeywordTable1(), getKeywordTable3() });

            Assert.AreEqual(5, dt.Rows.Count);
            Assert.AreEqual(3, dt.Columns.Count);

            Assert.AreEqual("dog", dt.Rows[0][0]);
            Assert.AreEqual("cat", dt.Rows[1][0]);
            Assert.AreEqual("rabbit", dt.Rows[2][0]);
            Assert.AreEqual("horse", dt.Rows[3][0]);
            Assert.AreEqual("moose", dt.Rows[4][0]);

            Assert.AreEqual(true, dt.Rows[0][1]);
            Assert.AreEqual(true, dt.Rows[1][1]);
            Assert.AreEqual(true, dt.Rows[2][1]);
            Assert.AreEqual(true, dt.Rows[3][1]);
            Assert.AreEqual(false, dt.Rows[4][1]);

            Assert.AreEqual(true, dt.Rows[0][2]);
            Assert.AreEqual(true, dt.Rows[1][2]);
            Assert.AreEqual(false, dt.Rows[2][2]);
            Assert.AreEqual(false, dt.Rows[3][2]);
            Assert.AreEqual(true, dt.Rows[4][2]);
        }
Esempio n. 2
0
        public void CombineKeywordLists2()
        {
            DataTable dt;

            dt = KeywordSummary.CombineKeywordLists(new DataTable[] { getKeywordTable1(), getKeywordTable2() });

            Assert.AreEqual("Sample1", dt.Columns[1].ColumnName);
            Assert.AreEqual("Sample2", dt.Columns[2].ColumnName);
        }