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); }
public Type Visit(LessOperator node) { VisitBinaryOperator("<", node, Type.INT); return(Type.BOOL); }