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); }
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); }