예제 #1
0
        public void AngleThresholdPairGetCPtr()
        {
            tlog.Debug(tag, $"AngleThresholdPairGetCPtr START");

            using (Radian t = new Radian(0.3f))
            {
                using (Radian u = new Radian(0.8f))
                {
                    var testingTarget = new AngleThresholdPair(t, u);
                    Assert.IsNotNull(testingTarget, "Can't create success object AngleThresholdPair");
                    Assert.IsInstanceOf <AngleThresholdPair>(testingTarget, "Should be an instance of AngleThresholdPair type.");

                    try
                    {
                        AngleThresholdPair.getCPtr(testingTarget);
                    }
                    catch (Exception e)
                    {
                        tlog.Debug(tag, e.Message.ToString());
                        Assert.Fail("Caught Exception : Failed!");
                    }

                    testingTarget.Dispose();
                }
            }

            tlog.Debug(tag, $"AngleThresholdPairGetCPtr END (OK)");
        }
예제 #2
0
 public AngleThresholdPair(AngleThresholdPair p) : this(Interop.AngleThresholdPair.NewAngleThresholdPair(AngleThresholdPair.getCPtr(p)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #3
0
 public AngleThresholdPair(AngleThresholdPair p) : this(NDalicPINVOKE.new_AngleThresholdPair__SWIG_2(AngleThresholdPair.getCPtr(p)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }