예제 #1
0
        public void Hide_Should_Do_Nothing_When_Keybord_Is_Already_Hidden()
        {
            HideKeyboard();

            var res = OnScreenKeyboard.Hide();

            Thread.Sleep(1000); // Need some timeout to be destroyed

            res.Should().Be.False();
            OnScreenKeyboard.IsVisible.Should().Be.False();
        }
예제 #2
0
        public void Should_Hide_A_Keyboard()
        {
            ShowKeyboard();

            var res = OnScreenKeyboard.Hide();

            Thread.Sleep(1000); // Need some timeout to be destroyed

            res.Should().Be.True();
            OnScreenKeyboard.IsVisible.Should().Be.False();
        }