コード例 #1
0
        public void InputMethodContextDownCast()
        {
            tlog.Debug(tag, $"InputMethodContextDownCast START");
            BaseHandle handle = new BaseHandle();

            InputMethodContext a1 = InputMethodContext.DownCast(handle);

            a1.Dispose();
            tlog.Debug(tag, $"InputMethodContextDownCast END (OK)");
            Assert.Pass("InputMethodContextDownCast");
        }
コード例 #2
0
        public void InputMethodContextDownCast()
        {
            tlog.Debug(tag, $"InputMethodContextDownCast START");

            using (InputMethodContext context = new InputMethodContext())
            {
                var testingTarget = InputMethodContext.DownCast(context);
                Assert.IsNotNull(testingTarget, "Can't create success object InputMethodContext");
                Assert.IsInstanceOf <InputMethodContext>(testingTarget, "Should be an instance of InputMethodContext type.");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"InputMethodContextDownCast END (OK)");
            Assert.Pass("InputMethodContextDownCast");
        }