public void TestCreateChildrenShouldNotAddNullNodeIfColumnHasNoNulls()
        {
            _column = new ColumnBuilder().WithValue(0d).Build();
            _root   = new FloatFilterTreeRoot(string.Empty, _column);
            var results = _root.CreateChildren();

            Assert.That(results.First() is NullFilterTreeLeaf, Is.False);
        }
        public void TestCreateFilterShouldCreateFloatFilterIfColumnDoesNotHasNulls()
        {
            var column = new ColumnBuilder()
                         .WithValue(double.MinValue)
                         .WithValue(double.MaxValue)
                         .Build();
            var root   = new FloatFilterTreeRoot(string.Empty, column);
            var result = (FloatFilter)root.CreateFilter();

            Assert.That(result.LowerValue, Is.EqualTo(double.MinValue));
            Assert.That(result.UpperValue, Is.EqualTo(double.MaxValue));
            Assert.That(result.IncludeNull, Is.False);
        }
 public void TestConstructorShouldSetName()
 {
     _column = new ColumnBuilder().WithValue(0.0d).Build();
     _root   = new FloatFilterTreeRoot("Test", _column);
     Assert.That(_root.Name, Is.EqualTo("Test"));
 }