public void Should_Bind_Primitive_Lists_With_Uninstantiated_Target_Objects() { var simpleListClass = new SimpleListClass(); _matcher.Match(simpleListClass); Assert.IsNotNull(simpleListClass.dates); Assert.IsNotNull(simpleListClass.strings); Assert.IsTrue(simpleListClass.dates.Count > 0); Assert.IsTrue(simpleListClass.strings.Count > 0); Assert.IsTrue(simpleListClass.dates.All(x => x != default(DateTime))); Assert.IsTrue(simpleListClass.strings.All(x => x != default(string))); }
public void Should_Bind_Primitive_Lists_With_Uninstantiated_Target_Objects() { var simpleListClass = new SimpleListClass(); _matcher.Match(simpleListClass); Assert.IsNotNull(simpleListClass.dates); Assert.IsNotNull(simpleListClass.strings); Assert.IsTrue(simpleListClass.dates.Count > 0); Assert.IsTrue(simpleListClass.strings.Count > 0); Assert.IsTrue(simpleListClass.dates.All(x => x != default(DateTime))); Assert.IsTrue(simpleListClass.strings.All(x => x != default(string))); }