I have a string with conditions like this:
string conditions = "true && true || false || true ";
How do I assert that the entire string is either true or false?
For example, something like this:
if( Assert(conditions) == true ){
// passed
}
I need something that is readily available in C# without resorting to a 3rd party library.