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

ParseFunction_WithSingleSetParameter_SuceeedsAndReturnsFunction() private method

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

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

            //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));
        }