Пример #1
0
        public void ToStringTest()
        {
            var e1 = new ExtensionNoToString();

            Assert.Equal($"[{typeof(ExtensionNoToString).FullName}]", e1.ToString());

            BinaryExpression e2 = Expression.Add(Expression.Constant(1), new ExtensionToString());

            Assert.Equal($"(1 + bar)", e2.ToString());
        }
Пример #2
0
        public void ToStringTest()
        {
            var e1 = new ExtensionNoToString();
            Assert.Equal($"[{typeof(ExtensionNoToString).FullName}]", e1.ToString());

            BinaryExpression e2 = Expression.Add(Expression.Constant(1), new ExtensionToString());
            Assert.Equal($"(1 + bar)", e2.ToString());
        }