예제 #1
0
        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));
        }
예제 #2
0
        public void ComplexList_When_InitializedWithCount_Has_CorrectCount()
        {
            var complexList = EntityCreator.CreateComplexList <ComplexType>(20);

            Assert.IsTrue(complexList.Count == 20);
        }