public void Product_CollectExponents_Single()
        {
            var x          = Symbol("x");
            var expression = Product(x ^ 2, x ^ 3);
            var simplifier = new CollectExponentsInProductSimplifier();
            var result     = simplifier.Simplify(expression, CancellationToken.None);

            Assert.AreEqual("x ^ (2 + 3)", result.ToString());
        }
        public void Product_CollectExponents_WithOneExponent()
        {
            var x          = Symbol("x");
            var y          = Symbol("y");
            var expression = Product(5, x ^ 2, y ^ 0, x ^ 3, y ^ 1);
            var simplifier = new CollectExponentsInProductSimplifier();
            var result     = simplifier.Simplify(expression, CancellationToken.None);

            Assert.AreEqual("5 * x ^ (2 + 3) * y", result.ToString());
        }