public void ReadSequenceVariable() { var doc = new XDocument(new XElement("configuration"), new XComment( "NDistribUnit.Variable { Name:'Id', Type:\"Sequence\", TypeArguments:{Start:3,Step:2,NotExistentProperty:'Xaxa',Maximum:100}}")); var result = new DistributedConfigurationSetup(); @operator.FillSetupInstance(doc, result); Assert.That(result.Variables.Count, Is.EqualTo(1)); }
public void ReadingSimilarCommentsDoesNotCauseAFailure() { var doc = new XDocument(new XElement("configuration"), new XComment( "NDistribUnit. This is a test. {Name: 'Sequence', Parameters:{Start:3, Step: 2}}")); var result = new DistributedConfigurationSetup(); @operator.FillSetupInstance(doc, result); Assert.That(result.Variables.Count, Is.EqualTo(0)); }