Exemple #1
0
        public void VectorUint16Remove()
        {
            tlog.Debug(tag, $"VectorUint16Remove START");

            var testingTarget = new VectorUint16Pair();

            Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
            Assert.IsInstanceOf <VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");

            try
            {
                using (Uint16Pair pair = new Uint16Pair(30, 40))
                {
                    testingTarget.PushBack(pair);
                    testingTarget.Remove(pair);
                }
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"VectorUint16Remove END (OK)");
        }
Exemple #2
0
        public void VectorUint16PushBack()
        {
            tlog.Debug(tag, $"VectorUint16PairPushBack START");

            var testingTarget = new VectorUint16Pair();

            Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
            Assert.IsInstanceOf <VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"VectorUint16PairPushBack END (OK)");
        }