public void TestPreValidateACollection() {
     const string resource = @"<cfg>
         <things>
             <add name='one' value='something' />
             <add name='two' value='Another' />
         </things>
     </cfg>";
     var actual = new TestCollection(resource, new TraceLogger());
     Assert.AreEqual(1, actual.Errors().Length);
     Assert.AreEqual(3, actual.Things.Count);
 }
Exemple #2
0
        public void TestPreValidateACollection()
        {
            const string resource = @"<cfg>
                <things>
                    <add name='one' value='something' />
                    <add name='two' value='Another' />
                </things>
            </cfg>";
            var          actual   = new TestCollection(resource, new TraceLogger());

            Assert.AreEqual(1, actual.Errors().Length);
            Assert.AreEqual(3, actual.Things.Count);
        }