// Returns true if the two params have the same fields public static bool ValidateCharSetUnicodeSequential(CharSetUnicodeSequential str1, CharSetUnicodeSequential str2, string methodName) { if (str1.f1 != str2.f1 || str1.f2 != str2.f2) { Console.WriteLine("\tFAILED! " + methodName + "did not receive result as expected."); Console.WriteLine("\tThe Actual is..."); PrintCharSetUnicodeSequential(str1, str1.ToString()); Console.WriteLine("\tThe Expected is..."); PrintCharSetUnicodeSequential(str2, str2.ToString()); return(false); } else { Console.WriteLine("\tPASSED!"); return(true); } }
// Returns true if the two params have the same fields public static bool ValidateCharSetUnicodeSequential(CharSetUnicodeSequential str1, CharSetUnicodeSequential str2, string methodName) { if (str1.f1 != str2.f1 || str1.f2 != str2.f2) { Console.WriteLine("\tFAILED! " + methodName + "did not recieve result as expected."); Console.WriteLine("\tThe Actual is..."); PrintCharSetUnicodeSequential(str1, str1.ToString()); Console.WriteLine("\tThe Expected is..."); PrintCharSetUnicodeSequential(str2, str2.ToString()); return false; } else { Console.WriteLine("\tPASSED!"); return true; } }