Esempio n. 1
0
        public void Uint16PairSetX()
        {
            tlog.Debug(tag, $"Uint16PairSetX START");

            var testingTarget = new Uint16Pair(1, 2);

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

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

            testingTarget.Dispose();

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