public void MySorts_Test_Constructor_Empty_() { MySorts <int> newSorts = new MySorts <int>(); Assert.AreEqual(newSorts.type, typeof(int)); Assert.AreEqual(newSorts.collection.Count, 0); }
public void MySorts_Test_Constructor_IEnumerable <T>() { List <int> ints = new List <int>() { 1, 2, 3, 4, 5, 6 }; MySorts <int> newSorts = new MySorts <int>(ints); Assert.AreEqual(typeof(int), newSorts.type); Assert.AreEqual(newSorts.collection, ints); }