public static IncludeOuterIntegerStructSequential NewIncludeOuterIntegerStructSequential(int i321, int i322) { IncludeOuterIntegerStructSequential s10 = new IncludeOuterIntegerStructSequential(); s10.s.s_int.i = i321; s10.s.i = i322; return(s10); }
public static bool ValidateIncludeOuterIntegerStructSequential(IncludeOuterIntegerStructSequential str1, IncludeOuterIntegerStructSequential 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..."); PrintIncludeOuterIntegerStructSequential(str1, str1.ToString()); Console.WriteLine("\tThe Expected is..."); PrintIncludeOuterIntegerStructSequential(str2, str2.ToString()); return(false); } else { Console.WriteLine("\tPASSED!"); return(true); } }
public static void PrintIncludeOuterIntegerStructSequential(IncludeOuterIntegerStructSequential str1, string name) { Console.WriteLine("\t{0}.s.s_int.i = {1}", name, str1.s.s_int.i); Console.WriteLine("\t{0}.s.i = {1}", name, str1.s.i); }