public void Parse_Then_ResultShouldBeExpectedResult(string input, string expectedResult)
        {
            var testee = new BindingPathParser(new BindingPathLexicalAnalyzer());

            var result = testee.Parse(input);

            result.IsSuccess.Should().BeTrue();
            JsonConvert.SerializeObject(result.Value).Should().Be(expectedResult);
        }
        public void Parse_When_ComparingWithToStringVisitor_Then_ResultShouldBeExpectedResult(string input, string expectedResult)
        {
            expectedResult ??= input;
            var testee          = new BindingPathParser(new BindingPathLexicalAnalyzer());
            var toStringVisitor = new ToStringVisitor();

            var result = testee.Parse(input);

            result.IsSuccess.Should().BeTrue();
            toStringVisitor.Visit(result.Value, ˍ._).Should().Be(expectedResult);
        }
 public BindingMarkupExtensionParser(BindingPathParser bindingPathParser)
 {
     this.bindingPathParser = bindingPathParser;
 }