Ejemplo n.º 1
0
        public void FloatpConstructor()
        {
            tlog.Debug(tag, $"FloatpConstructor START");

            var testingTarget = new floatp();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"FloatpConstructor END (OK)");
        }
Ejemplo n.º 2
0
        public void FloatpAssign()
        {
            tlog.Debug(tag, $"FloatpConstructor START");

            var testingTarget = new floatp();

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

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"FloatpConstructor END (OK)");
        }
Ejemplo n.º 3
0
        public void FloatpValue()
        {
            tlog.Debug(tag, $"FloatpValue START");

            var testingTarget = new floatp();

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

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

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