Ejemplo n.º 1
0
        public void ProperStringFoundNotFound()
        {
            var     testTable = new DataTable();
            var     grouper   = new DataGroupingByAdv();
            DataRow row       = testTable.NewRow();
            bool    result    = grouper.ProperStringFound(row, row);

            Assert.IsFalse(result, "Method has to return false if there is no column advertiser");
        }
Ejemplo n.º 2
0
        public void ProperStringFoundOk()
        {
            var testTable = GetDataTableTestData.GetTestDataTableWitGoodData();

            testTable.Columns.Add("advertiser");
            var     grouper = new DataGroupingByAdv();
            DataRow row     = testTable.NewRow();

            row["advertiser"] = "test";
            bool result = grouper.ProperStringFound(row, row);

            Assert.IsTrue(result, "two idential rows are different");
        }