public void KeyInputFocusManagerRemoveFocus() { tlog.Debug(tag, $"KeyInputFocusManagerRemoveFocus START"); using (View view = new View() { Size = new Size(100, 50) }) { var testingTarget = KeyInputFocusManager.Get(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <KeyInputFocusManager>(testingTarget, "Should be an Instance of KeyInputFocusManager!"); testingTarget.SetFocus(view); try { testingTarget.RemoveFocus(view); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"KeyInputFocusManagerRemoveFocus END (OK)"); }
public void KeyInputFocusManagerGet() { tlog.Debug(tag, $"KeyInputFocusManagerGet START"); var testingTarget = KeyInputFocusManager.Get(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <KeyInputFocusManager>(testingTarget, "Should be an Instance of KeyInputFocusManager!"); testingTarget.Dispose(); tlog.Debug(tag, $"KeyInputFocusManagerGet END (OK)"); }
public void KeyInputFocusManagerSetFocus() { tlog.Debug(tag, $"KeyInputFocusManagerSetFocus START"); using (View view = new View() { Size = new Size(100, 50) }) { var testingTarget = KeyInputFocusManager.Get(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <KeyInputFocusManager>(testingTarget, "Should be an Instance of KeyInputFocusManager!"); testingTarget.SetFocus(view); var result = testingTarget.GetCurrentFocusControl(); Assert.AreEqual(100, result.Size.Width, "Should be equal!"); testingTarget.Dispose(); } tlog.Debug(tag, $"KeyInputFocusManagerSetFocus END (OK)"); }
public void KeyInputFocusManagerKeyInputFocusChangedSignal() { tlog.Debug(tag, $"KeyInputFocusManagerKeyInputFocusChangedSignal START"); using (View view = new View() { Size = new Size(100, 50) }) { var testingTarget = KeyInputFocusManager.Get(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <KeyInputFocusManager>(testingTarget, "Should be an Instance of KeyInputFocusManager!"); testingTarget.SetFocus(view); var signal = testingTarget.KeyInputFocusChangedSignal(); Assert.IsNotNull(signal, "Should be not null!"); Assert.IsInstanceOf <Tizen.NUI.SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__Control_Dali__Toolkit__ControlF_t>(signal, "Should be an Instance of Tizen.NUI.SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__Control_Dali__Toolkit__ControlF_t!"); testingTarget.Dispose(); } tlog.Debug(tag, $"KeyInputFocusManagerKeyInputFocusChangedSignal END (OK)"); }