public void ParsingAttribute() { var result = grammar.Attribute(Source("foo=\"quad\"")); Assert.IsNotNull(result); Assert.AreEqual("foo", result.Value.Name); Assert.AreEqual("quad", result.Value.Value); var result2 = grammar.Attribute(Source("foo2='quad2'")); Assert.IsNotNull(result2); Assert.AreEqual("foo2", result2.Value.Name); Assert.AreEqual("quad2", result2.Value.Value); var result3 = grammar.Attribute(Source("foo3!='quad2'")); Assert.IsNull(result3); }