Esempio n. 1
0
    public static IntegerStructSequential NewIntegerStructSequential(int i1)
    {
        IntegerStructSequential u1 = new IntegerStructSequential();

        u1.i = i1;

        return(u1);
    }
Esempio n. 2
0
 public static bool ValidateIntegerStructSequential(IntegerStructSequential str1, IntegerStructSequential str2, string methodName)
 {
     if (str1.i != str2.i)
     {
         Console.WriteLine("\tFAILED! " + methodName + "did not receive result as expected.");
         Console.WriteLine("\tThe Actual is...");
         PrintIntegerStructSequential(str1, str1.ToString());
         Console.WriteLine("\tThe Expected is...");
         PrintIntegerStructSequential(str2, str2.ToString());
         return(false);
     }
     else
     {
         Console.WriteLine("\tPASSED!");
         return(true);
     }
 }
Esempio n. 3
0
 public static void PrintIntegerStructSequential(IntegerStructSequential str1, string name)
 {
     Console.WriteLine("\t{0}.i = {1}", name, str1.i);
 }