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

            var testingTarget = new ushortp();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!");

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

            var testingTarget = new ushortp();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!");

            var result = testingTarget.value();

            tlog.Debug(tag, "value : " + result);

            testingTarget.Dispose();
            tlog.Debug(tag, $"ushortpValue END (OK)");
        }
Exemple #3
0
        public void ushortpAssign()
        {
            tlog.Debug(tag, $"ushortpAssign START");

            var testingTarget = new ushortp();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!");

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

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