Following is the code snippet from a console application -
class MyClass { public int GetDay(string data22) { int returnValue = 0;
The ExecutionDay string contains invisible characters, otherwise all checks would be true
ExecutionDay
The following lines return a different length, 9 and 8 respectively
Console.WriteLine(ExecutionDay.Length); Console.WriteLine("THURSDAY".Length);