public void CalcComplexAddition() { var source = new StringSource(@"calc(50% + 3px / 2em + -1cm)"); var calc = CalcParser.ParseCalc(source); Assert.AreEqual("calc(50% + 3px / 2em + -1cm)", calc.CssText); }
public void CalcSimpleAddition() { var source = new StringSource(@"calc(5 + 3)"); var calc = CalcParser.ParseCalc(source); Assert.AreEqual("calc(5 + 3)", calc.CssText); }
public void CalcAdditionWithCalcBracket() { var source = new StringSource(@"calc(5 + calc(3 + 7))"); var calc = CalcParser.ParseCalc(source); Assert.AreEqual("calc(5 + 3 + 7)", calc.CssText); }
public void CalcSimpleLength() { var source = new StringSource(@"calc(5px)"); var calc = CalcParser.ParseCalc(source); Assert.AreEqual("calc(5px)", calc.CssText); }