Ejemplo n.º 1
0
        public void RejectsClick()
        {
            var click          = new ScriptedClick(20, 45);
            var acceptableKeys = new AcceptableKeys("e");

            Assert.IsFalse(acceptableKeys.Accepts(click));
        }
Ejemplo n.º 2
0
        public void RejectsSubstring()
        {
            var keys           = new ScriptedKeys("e");
            var acceptableKeys = new AcceptableKeys("efg");

            Assert.IsFalse(acceptableKeys.Accepts(keys));
        }
Ejemplo n.º 3
0
        public void RejectsWrongKey()
        {
            var keys           = new ScriptedKeys("e");
            var acceptableKeys = new AcceptableKeys("a");

            Assert.IsFalse(acceptableKeys.Accepts(keys));
        }
Ejemplo n.º 4
0
        public void AcceptsLongerKeys()
        {
            var keys           = new ScriptedKeys("efg");
            var acceptableKeys = new AcceptableKeys("efg");

            Assert.IsTrue(acceptableKeys.Accepts(keys));
        }