Пример #1
0
        public void DoesBuildPostfixTokensFromInfixTokens(IList <IToken> infixTokens,
                                                          IList <IToken> expectedPostfixTokens)
        {
            var postfixTokens = _postfixBuilder.Build(infixTokens).ToList();

            AssertHelpers.AreListsEqual(expectedPostfixTokens, postfixTokens);
        }
        public void DoesReturnEquationAsInfixTokens(string equation, IList <IToken> expectedInfixTokens)
        {
            var infixTokens = _infixEquationParser.Parse(equation).ToList();

            AssertHelpers.AreListsEqual(expectedInfixTokens, infixTokens);
        }