public void reverse_is_null()
        {
            var filter = new IsNullFilter(Substitute.For <IField>());

            filter.Reverse().ShouldBeOfType <IsNotNullFilter>()
            .Field.ShouldBe(filter.Field);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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"]);
            }
        }