Пример #1
0
 public static bool ValidateIncludeOuterIntergerStructSequential(IncludeOuterIntergerStructSequential str1, IncludeOuterIntergerStructSequential str2, string methodName)
 {
     if (str1.s.s_int.i != str2.s.s_int.i || str1.s.i != str2.s.i)
     {
         Console.WriteLine("\tFAILED! " + methodName + "did not receive result as expected.");
         Console.WriteLine("\tThe Actual is...");
         PrintIncludeOuterIntergerStructSequential(str1, str1.ToString());
         Console.WriteLine("\tThe Expected is...");
         PrintIncludeOuterIntergerStructSequential(str2, str2.ToString());
         return(false);
     }
     else
     {
         Console.WriteLine("\tPASSED!");
         return(true);
     }
 }
Пример #2
0
 public static bool ValidateIncludeOuterIntergerStructSequential(IncludeOuterIntergerStructSequential str1, IncludeOuterIntergerStructSequential str2, string methodName)
 {
     if (str1.s.s_int.i != str2.s.s_int.i || str1.s.i != str2.s.i)
     {
         Console.WriteLine("\tFAILED! " + methodName + "did not recieve result as expected.");
         Console.WriteLine("\tThe Actual is...");
         PrintIncludeOuterIntergerStructSequential(str1, str1.ToString());
         Console.WriteLine("\tThe Expected is...");
         PrintIncludeOuterIntergerStructSequential(str2, str2.ToString());
         return false;
     }
     else
     {
         Console.WriteLine("\tPASSED!");
         return true;
     }
 }