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)");
        }
Example #2
0
        public void AngleThresholdPairConstructor()
        {
            tlog.Debug(tag, $"AngleThresholdPairConstructor START");

            var testingTarget = new AngleThresholdPair();

            Assert.IsNotNull(testingTarget, "Can't create success object AngleThresholdPair");
            Assert.IsInstanceOf <AngleThresholdPair>(testingTarget, "Should be an instance of AngleThresholdPair type.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"AngleThresholdPairConstructor END (OK)");
        }
Example #3
0
        public void AngleThresholdPairConstructorWithRadians()
        {
            tlog.Debug(tag, $"AngleThresholdPairConstructorWithRadians 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.");

                    testingTarget.Dispose();
                }
            }

            tlog.Debug(tag, $"AngleThresholdPairConstructorWithRadians END (OK)");
        }
Example #4
0
        public void AngleThresholdPairFirst()
        {
            tlog.Debug(tag, $"AngleThresholdPairFirst 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.");

                    Assert.AreEqual(0.3f, testingTarget.first.ConvertToFloat(), "Should be equal!");

                    testingTarget.first = new Radian(0.4f);
                    Assert.AreEqual(0.4f, testingTarget.first.ConvertToFloat(), "Should be equal!");

                    testingTarget.Dispose();
                }
            }

            tlog.Debug(tag, $"AngleThresholdPairFirst END (OK)");
        }