public void CollectionFactory_BuildList() { Assert.AreEqual(typeof(List <int>), CollectionFactory.BuildList(typeof(int)).GetType()); Assert.AreEqual(typeof(List <bool>), CollectionFactory.BuildList(typeof(bool)).GetType()); Assert.AreEqual(typeof(List <string>), CollectionFactory.BuildList(typeof(string)).GetType()); Assert.AreEqual(typeof(List <CollectionFactoryTests>), CollectionFactory.BuildList(typeof(CollectionFactoryTests)).GetType()); Assert.AreEqual(typeof(List <List <int> >), CollectionFactory.BuildList(typeof(List <int>)).GetType()); Assert.AreEqual(typeof(List <int[]>), CollectionFactory.BuildList(typeof(int[])).GetType()); }