示例#1
0
        public void Matches_NullArgument_ShouldReturnFalse()
        {
            //Arrange
            var p = new PolyGesture();

            //Act
            var actual = p.Matches(null, null);

            //Assert
            Assert.False(actual);
        }
示例#2
0
        public void Matches_InvalidInputEventArgsType_ShouldReturnFalse()
        {
            //Arrange
            var p = new PolyGesture
            {
                Type = GestureType.KeyGesture
            };

            //Act
            var actual = p.Matches(null, new InputEventArgs(new TestDevice(), 0));

            //Assert
            Assert.False(actual);
        }