public static UxElement Parse(string uxText) { if (uxText == null) { throw new ArgumentNullException(nameof(uxText)); } return(new UxElement((ElementSyntaxBase)SyntaxParser.ParseNode(uxText))); }
public void Equals_test(string aux, string bux, bool expected) { var a = SyntaxParser.ParseNode(aux); var b = SyntaxParser.ParseNode(bux); Assert.That(a.Equals(b), Is.EqualTo(expected)); Assert.That(b.Equals(a), Is.EqualTo(expected)); Assert.That(a.GetHashCode() == b.GetHashCode(), Is.EqualTo(expected)); }
static UxElement ParseElement(string initial) { return((UxElement)UxNode.FromSyntax(SyntaxParser.ParseNode(initial))); }