Код: Выделить всё
private static readonly IEnumerable ListOfEnumValues = Enum.GetValues(typeof(MyEnumType)).Cast();
private static readonly IEnumerable ListOfBoolValues = new List(){true, false};
[Theory]
[TestData(ListOfEnumValues, ListOfBooleanValues)]
public void Test(EnumType type, bool myBool)
{
// test code
};
Подробнее здесь: https://stackoverflow.com/questions/786 ... -parameter
Мобильная версия