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"); }
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"); }