コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }