Пример #1
0
 public void TestPreValidateAProperty() {
     const string resource = @"<cfg>
         <things>
             <add name='one' value='something' />
             <add name='two' value='Another' />
         </things>
     </cfg>";
     var actual = new TestProperty(resource, new TraceLogger());
     Assert.AreEqual(0, actual.Errors().Length);
     Assert.AreEqual(2, actual.Things.Count);
 }
Пример #2
0
        public void TestPreValidateAProperty()
        {
            const string resource = @"<cfg>
                <things>
                    <add name='one' value='something' />
                    <add name='two' value='Another' />
                </things>
            </cfg>";
            var          actual   = new TestProperty(resource, new TraceLogger());

            Assert.AreEqual(0, actual.Errors().Length);
            Assert.AreEqual(2, actual.Things.Count);
        }