public static ByteStruct3Byte NewByteStruct3Byte(byte b1, byte b2, byte b3)
    {
        ByteStruct3Byte u1 = new ByteStruct3Byte();

        u1.b1 = b1;
        u1.b2 = b2;
        u1.b3 = b3;

        return(u1);
    }
 public static bool ValidateByteStruct3Byte(ByteStruct3Byte str1, ByteStruct3Byte str2, string methodName)
 {
     if (str1.b1 != str2.b1 || str1.b2 != str2.b2)
     {
         Console.WriteLine("\tFAILED! " + methodName + "did not receive result as expected.");
         Console.WriteLine("\tThe Actual is...");
         PrintByteStruct3Byte(str1, str1.ToString());
         Console.WriteLine("\tThe Expected is...");
         PrintByteStruct3Byte(str2, str2.ToString());
         return(false);
     }
     else
     {
         Console.WriteLine("\tPASSED!");
         return(true);
     }
 }
 public static void PrintByteStruct3Byte(ByteStruct3Byte str1, string name)
 {
     Console.WriteLine("\t{0}.b1 = {1}", name, str1.b1);
     Console.WriteLine("\t{0}.b2 = {1}", name, str1.b2);
     Console.WriteLine("\t{0}.b3 = {1}", name, str1.b3);
 }