So I have a method which takes a string. The string is built up from a constant value and 2 bools, 2 constant ints, and an int that can be 10,20 or 30. this will all be a string where the parameters are seperated by underscore.
Example:
string value = "horse"
string combination1 = value+"_true_false_1_1_20";
dostuff(combination1);
I need to run every single possible combination through
How do I take this constant value and run it through the method with all of the possible combinations ?
String built: "VALUE_BOOL1_BOOL2_CONSTINT1_CONSTINT2_INT1"
Possibilities
VALUE = Horse
BOOL1 = True, False
BOOL2 = True, False
CONSTINT1 = 1
CONSTINT2 = 1,
INT1 = 10, 20, 30
How can I take the predefined value string and create all possible combinations and run them through the doStuff(string combination) method ?