コード例 #1
0
        public void RejectsWrongKey()
        {
            var keys           = new ScriptedKeys("e");
            var acceptableKeys = new AcceptableKeys("a");

            Assert.IsFalse(acceptableKeys.Accepts(keys));
        }
コード例 #2
0
        public void AcceptsLongerKeys()
        {
            var keys           = new ScriptedKeys("efg");
            var acceptableKeys = new AcceptableKeys("efg");

            Assert.IsTrue(acceptableKeys.Accepts(keys));
        }
コード例 #3
0
        public void RejectsSubstring()
        {
            var keys           = new ScriptedKeys("e");
            var acceptableKeys = new AcceptableKeys("efg");

            Assert.IsFalse(acceptableKeys.Accepts(keys));
        }
コード例 #4
0
        public void RejectsKey()
        {
            var click           = new ScriptedKeys("e");
            var acceptableClick = new AcceptableClick(30, 60, 30, 60);

            Assert.IsFalse(acceptableClick.Accepts(click));
        }