Exemplo n.º 1
0
 public static int TestITest(ITest itest)
 {
     try {
         ITest itest2;
         itest.SByteIn(-100);
         itest.ByteIn(100);
         itest.ShortIn(-100);
         itest.UShortIn(100);
         itest.IntIn(-100);
         itest.UIntIn(100);
         itest.LongIn(-100);
         itest.ULongIn(100);
         itest.FloatIn(3.14f);
         itest.DoubleIn(3.14);
         itest.ITestIn(itest);
         itest.ITestOut(out itest2);
     }
     catch (Exception ex) {
         return(1);
     }
     return(0);
 }
Exemplo n.º 2
0
    public static int TestITest(ITest
itest)
    {
        try
        {
        ITest
        itest2;
        itest.SByteIn
        (-100);
        itest.ByteIn
        (100);
        itest.ShortIn
        (-100);
        itest.UShortIn
        (100);
        itest.IntIn
        (-100);
        itest.UIntIn
        (100);
        itest.LongIn
        (-100);
        itest.ULongIn
        (100);
        itest.FloatIn
        (3.14f);
        itest.DoubleIn
        (3.14);
        itest.ITestIn
        (itest);
        itest.ITestOut
        (out
        itest2);
        }
        catch
        (Exception
        ex)
        {
        return
        1;
        }
        return
        0;
    }