Exemple #1
0
        public void New_Methods_Return_False()
        {
            var r = new Responder();

            Assert.False(r.ProcessKey(new KeyEvent()
            {
                Key = Key.Unknown
            }));
            Assert.False(r.ProcessHotKey(new KeyEvent()
            {
                Key = Key.Unknown
            }));
            Assert.False(r.ProcessColdKey(new KeyEvent()
            {
                Key = Key.Unknown
            }));
            Assert.False(r.OnKeyDown(new KeyEvent()
            {
                Key = Key.Unknown
            }));
            Assert.False(r.OnKeyUp(new KeyEvent()
            {
                Key = Key.Unknown
            }));
            Assert.False(r.MouseEvent(new MouseEvent()
            {
                Flags = MouseFlags.AllEvents
            }));
            Assert.False(r.OnMouseEnter(new MouseEvent()
            {
                Flags = MouseFlags.AllEvents
            }));
            Assert.False(r.OnMouseLeave(new MouseEvent()
            {
                Flags = MouseFlags.AllEvents
            }));
            Assert.False(r.OnEnter(new View()));
            Assert.False(r.OnLeave(new View()));
        }