I try to write a test that looks like this:
private static readonly IEnumerable<MyEnumType> ListOfEnumValues = Enum.GetValues(typeof(MyEnumType)).Cast<DocumentType>();
private static readonly IEnumerable<bool> ListOfBoolValues = new List<bool>(){true, false};
[Theory]
[TestData(ListOfEnumValues, ListOfBooleanValues)]
public void Test(EnumType type, bool myBool)
{
// test code
};
How is this possible?