BalticAmadeus.FluentMdx.Tests.MdxParserPartsTests.ParseFunction_WithSingleFunctionParameter_SuceeedsAndReturnsFunction C# (CSharp) Method

ParseFunction_WithSingleFunctionParameter_SuceeedsAndReturnsFunction() private method

        public void ParseFunction_WithSingleFunctionParameter_SuceeedsAndReturnsFunction()
        {
            //ARRANGE
            const string queryString = "MYFUNCTION(MYOTHERFUNCTION())";

            const string expectedString = "MYFUNCTION(MYOTHERFUNCTION())";

            //ACT
            MdxExpressionBase expression;
            bool isSucceeded = MdxParser.TryParseFunction(_lexer.Tokenize(queryString).GetStatedTwoWayEnumerator(), out expression);

            //ASSERT
            Assert.That(isSucceeded, Is.True);
            Assert.That(expression, Is.InstanceOf<MdxFunction>());
            Assert.That(expression.ToString(), Is.EqualTo(expectedString));
        }