Пример #1
0
        public void VectorBaseCount()
        {
            tlog.Debug(tag, $"VectorBaseCount START");

            using (View view = new View())
            {
                var testingTarget = new VectorBase(view.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <VectorBase>(testingTarget, "Should be an Instance of VectorBase!");

                try
                {
                    var result = testingTarget.Count();
                    tlog.Debug(tag, "Count : " + result);
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception: Failed!");
                }

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"VectorBaseCount END (OK)");
        }
Пример #2
0
        public void VectorBaseConstructor()
        {
            tlog.Debug(tag, $"VectorBaseConstructor START");

            using (View view = new View())
            {
                var testingTarget = new VectorBase(view.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <VectorBase>(testingTarget, "Should be an Instance of VectorBase!");

                testingTarget.Dispose();
            }

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