示例#1
0
        public void ShouldBeLessThanValue([Range(0, 5)] int value)
        {
            // Given
            var filter = new LessOperator(EntityType, IntField, value);
            var entity = new FilterTestEntity {
                IntField = 3
            };

            // When
            var isSatisfy = filter.IsSatisfiedBy(entity);

            // Then
            Assert.AreEqual(entity.IntField < value, isSatisfy);
        }
示例#2
0
 public Type Visit(LessOperator node)
 {
     VisitBinaryOperator("<", node, Type.INT);
     return(Type.BOOL);
 }