public void ComplexList_When_Initialized_Has_Value() { var complexList = EntityCreator.CreateComplexList <ComplexType>(); Assert.IsInstanceOfType(complexList, typeof(List <ComplexType>)); Assert.IsTrue(complexList.Count > 0); Assert.IsNotNull(complexList.First().DateTime != default(DateTime)); }
public void ComplexList_When_InitializedWithCount_Has_CorrectCount() { var complexList = EntityCreator.CreateComplexList <ComplexType>(20); Assert.IsTrue(complexList.Count == 20); }