public void It_Should_Store_The_Value(bool val) { // Arrange var booleanSymbol = new LiquidBoolean(val); var result = booleanSymbol.Value; // Assert Assert.Equal(val, result); }
public void It_Should_Negate_An_Argument() { // Arrange var boolTrue = new LiquidBoolean(true); var expr = new NotExpression(); // Act var result = expr.Eval(new TemplateContext(), new List <Option <ILiquidValue> > { boolTrue }).SuccessValue <LiquidBoolean>(); // Assert Assert.That(result.Value, Is.False); }
public ForBlockTag() { //Limit = new LiquidNumeric(50); // as per the Shopify docs Reversed = new LiquidBoolean(false); //Offset = new LiquidNumeric(0); }
public virtual LiquidExpressionResult ApplyTo(ITemplateContext ctx, LiquidBoolean val) { return(ApplyTo(ctx, (ILiquidValue)val)); }