public static List <SerializableBaseClass> GenerateListWithBothSerializableClasses()
        {
            var list = SerializableBaseClass.GenerateList();

            list.AddRange(GenerateList().Cast <SerializableBaseClass>());
            return(list);
        }
 public void EditInDataGridViewTest()
 {
     TestShowInGrid(NonSerializableClass.GenerateList());
     TestShowInGrid(SerializableClass.GenerateList());
     TestShowInGrid(SerializableClass.GenerateListWithBoth());
     TestShowInGrid(SerializableBaseClass.GenerateList());
     TestShowInGrid(SerializableBaseClass2.GenerateListWithBothSerializableClasses());
     TestEditInDataGridView(null);
     TestShowInGrid(Enumerable.Range(1, 100));
 }