Beispiel #1
0
        public static void TestBlatMobile(BlatMobile b1)
        {
            if (null == b1)
            {
                throw new System.Exception("error: null b1 not allowed in TestBlatMobile...\n");
            }

            Trace(System.String.Format("RefCount: {0}\n", b1.RefCount));

            Trace("Calling CycleTurbo from C#...\n");
            BlatMobile.CycleTurbo(b1);

            Trace("Calling CycleTurbo(null) from C#...\n");
            BlatMobile.CycleTurbo(null);

            Trace("Calling ActivateTurboBoost/DeactivateTurboBoost from C#...\n");
            b1.ActivateTurboBoost();
            b1.DeactivateTurboBoost();
            Trace(System.String.Format("RefCount: {0}\n", b1.RefCount));

            Trace(System.String.Format("Testing \"supported data types\" methods...\n"));
            b1.VUnsignedChar((byte)'a');
            b1.VUnsignedShort(0x11);
            b1.VUnsignedInt(0x2222);
            b1.VUnsignedLong(0x33333333);
            b1.VUnsignedInt64(0x4444444444444444);
            b1.VChar((sbyte)'b');
            b1.VShort(0x55);
            b1.VInt(0x6666);
            b1.VLong(0x77777777);
            b1.VInt64(System.Int64.MinValue);
            b1.VInt64(0);
            b1.VInt64(System.Int64.MaxValue);
            b1.VBool(true);
            b1.VFloat(9.9f);
            b1.VDouble(101010.101010101010101010);
            b1.VVoidPointer(System.IntPtr.Zero);
            b1.VVoidPointer((System.IntPtr)b1.GetCppThis().Handle);
            b1.VVoidPointer(System.IntPtr.Zero);
            b1.VObjectPointer(null);
            b1.VObjectPointer(b1);
            b1.VObjectPointer(null);
            Trace(System.String.Format("Testing \"supported data types\" methods... -- done\n"));
        }
Beispiel #2
0
        public static void TestBlatMobile(BlatMobile b1)
        {
            if (null == b1)
               {
              throw new System.Exception("error: null b1 not allowed in TestBlatMobile...\n");
               }

               Trace(System.String.Format("RefCount: {0}\n", b1.RefCount));

               Trace("Calling CycleTurbo from C#...\n");
               BlatMobile.CycleTurbo(b1);

               Trace("Calling CycleTurbo(null) from C#...\n");
               BlatMobile.CycleTurbo(null);

               Trace("Calling ActivateTurboBoost/DeactivateTurboBoost from C#...\n");
               b1.ActivateTurboBoost();
               b1.DeactivateTurboBoost();
               Trace(System.String.Format("RefCount: {0}\n", b1.RefCount));

               Trace(System.String.Format("Testing \"supported data types\" methods...\n"));
               b1.VUnsignedChar((byte)'a');
               b1.VUnsignedShort(0x11);
               b1.VUnsignedInt(0x2222);
               b1.VUnsignedLong(0x33333333);
               b1.VUnsignedInt64(0x4444444444444444);
               b1.VChar((sbyte)'b');
               b1.VShort(0x55);
               b1.VInt(0x6666);
               b1.VLong(0x77777777);
               b1.VInt64(System.Int64.MinValue);
               b1.VInt64(0);
               b1.VInt64(System.Int64.MaxValue);
               b1.VBool(true);
               b1.VFloat(9.9f);
               b1.VDouble(101010.101010101010101010);
               b1.VVoidPointer(System.IntPtr.Zero);
               b1.VVoidPointer((System.IntPtr) b1.GetCppThis().Handle);
               b1.VVoidPointer(System.IntPtr.Zero);
               b1.VObjectPointer(null);
               b1.VObjectPointer(b1);
               b1.VObjectPointer(null);
               Trace(System.String.Format("Testing \"supported data types\" methods... -- done\n"));
        }