Ejemplo n.º 1
0
        public void GroupFieldsTestOkColumnNotFound()
        {
            var     testTable = new DataTable();
            var     grouper   = new DataGroupingByAdv();
            DataRow row       = testTable.NewRow();

            grouper.GroupFields(row, row);
        }
Ejemplo n.º 2
0
        public void GroupFieldsTestOk()
        {
            var testTable = new DataTable();

            testTable.Columns.Add("ad_spend", typeof(double));
            var     grouper = new DataGroupingByAdv();
            DataRow row     = testTable.NewRow();

            row["ad_spend"] = 4.55;
            grouper.GroupFields(row, row);
            Assert.IsTrue((double)row["ad_spend"] == 9.1, "two idential rows are different");
        }