コード例 #1
0
ファイル: ParserTest.cs プロジェクト: upflow/Calculator
        public void IsJoinCorrect()
        {
            string exp = "-10+10-(-4+(-8))";
            string[] expArr = new[] {"-10", "+", "10", "-", "(", "-4", "+", "-8", ")" };
            Parser target = new Parser(mathOperations.Object);

            string result = target.Join(expArr);

            Assert.AreEqual(exp, result);
        }