public void TestScriptSerialization()
        {
            var expr = new ExpressionContainer("script");
            var serializer = new XmlExpressionsSerializer();
            var xml = serializer.Serialize(expr);

            var result = serializer.Deserialize(xml);
            Assert.IsNotNull(result);
            Assert.AreEqual(expr.ExpressionScript, result.ExpressionScript);
        }
        public void TestSerialization()
        {
            var expr =
                new ExpressionContainer(
                    new IExpressionObjectBase[]
                        {
                            new Connection { Source = new ConnectorOut(null), Sink = new ConnectorIn(null) }, new ConstantExpression(),
                            new OneInOneOutExpression(ExpressionNodeType.ToLower)
                        });
            var serializer = new XmlExpressionsSerializer();
            var xml = serializer.Serialize(expr);

            var result = serializer.Deserialize(xml);
            Assert.IsNotNull(result);
            Assert.AreEqual(3, result.Expressions.Count);
            Assert.IsTrue(result.Expressions.Any(x => x is Connection));
            Assert.IsTrue(result.Expressions.Any(x => x is ConstantExpression));
            Assert.IsTrue(result.Expressions.Any(x => x is OneInOneOutExpression));
        }