public void CanParse_Positive(params string[] args) { // Act var actualValue = sequenceParser.CanParse(args); // Assert Assert.True(actualValue); }
public void TestInheritDictionary() { var c = new ParsingContext(_context) { Dictionary = "template" }; XmlElement node = Document("<sequence name='seq'/>"); Assert.IsTrue(_parser.CanParse(node, c)); var sequence = (Sequence)_parser.Parse(node, c); Assert.AreEqual("template", sequence.Length.Dictionary); node = Document("<sequence name='seq'><length name='explicitLength'/></sequence>"); sequence = (Sequence)_parser.Parse(node, c); Assert.AreEqual("template", sequence.Length.Dictionary); }