예제 #1
0
 public static bool ValidateLongStructPack16Explicit(LongStructPack16Explicit str1, LongStructPack16Explicit str2, string methodName)
 {
     if (str1.l1 != str2.l1 || str1.l2 != str2.l2)
     {
         Console.WriteLine("\tFAILED! " + methodName + "did not receive result as expected.");
         Console.WriteLine("\tThe Actual is...");
         PrintLongStructPack16Explicit(str1, str1.ToString());
         Console.WriteLine("\tThe Expected is...");
         PrintLongStructPack16Explicit(str2, str2.ToString());
         return(false);
     }
     else
     {
         Console.WriteLine("\tPASSED!");
         return(true);
     }
 }
예제 #2
0
파일: Helper.cs 프로젝트: CheneyWu/coreclr
 public static bool ValidateLongStructPack16Explicit(LongStructPack16Explicit str1, LongStructPack16Explicit str2, string methodName)
 {
     if (str1.l1 != str2.l1 || str1.l2 != str2.l2)
     {
         Console.WriteLine("\tFAILED! " + methodName + "did not recieve result as expected.");
         Console.WriteLine("\tThe Actual is...");
         PrintLongStructPack16Explicit(str1, str1.ToString());
         Console.WriteLine("\tThe Expected is...");
         PrintLongStructPack16Explicit(str2, str2.ToString());
         return false;
     }
     else
     {
         Console.WriteLine("\tPASSED!");
         return true;
     }
 }