Arithmetica.Tests.Visitors.FormatVisitorTests.FormatVisitor_ArithmeticExpression_Can_Be_Formatted C# (CSharp) 메소드

FormatVisitor_ArithmeticExpression_Can_Be_Formatted() 개인적인 메소드

        public void FormatVisitor_ArithmeticExpression_Can_Be_Formatted()
        {
            MathExpression expression = MathExpression.Parse("-1+2-3*4/5^6%7");
            FormatVisitor visitor = new FormatVisitor();
            string format = visitor.Format(expression);
            Assert.AreEqual("((-1+2)-(((3*4)/(5^6))%7))", format);
        }