Ejemplo n.º 1
0
        public void GetRowsWithNullFirstName()
        {
            IRowFilter filter = new IsNullFilter(this.table.GetColumnPosition("FirstName"));

            RowList rows = this.table.ApplyFilter(filter);

            Assert.IsNotNull(rows);
            Assert.AreEqual(0, rows.Count);
        }
Ejemplo n.º 2
0
        public void GetRowsWithNullAddress()
        {
            IRowFilter filter = new IsNullFilter(this.table.GetColumnPosition("Address"));

            RowList rows = this.table.ApplyFilter(filter);

            Assert.IsNotNull(rows);
            Assert.AreEqual(this.table.RowCount / 2, rows.Count);

            foreach (Row row in rows)
                Assert.IsNull(row["Address"]);
        }