Inheritance: IMarkupExtensionParser
        private void ParseAndAssertObjectGraph(string sourceText, MarkupExtension expected)
        {
            IMarkupExtensionParser markupExtensionParser = new MarkupExtensionParser();
            MarkupExtension actual;
            var result = markupExtensionParser.TryParse(sourceText, out actual);

            Assert.That(result, Is.True);
            Assert.That(actual, Is.Not.Null);

            var compareLogic = new CompareLogic();
            var compareResult = compareLogic.Compare(expected, actual);
            Assert.That(compareResult.AreEqual, Is.True, compareResult.DifferencesString);
        }
 public AttributeInfoFactory(MarkupExtensionParser parser, AttributeOrderRules orderRules)
 {
     _parser = parser;
     _orderRules = orderRules;
 }
 public void Setup()
 {
     _parser = new MarkupExtensionParser();
     _formatter = new MarkupExtensionFormatter(new[] { "x:Bind" });
 }