Example #1
0
        public void DeviceNameValidator_ThrowsOnInvalidKey()
        {
            var target = new DeviceNameValidator();

            target.Validate("test", "Th!s$houldFa!l");
        }
Example #2
0
        public void DeviceNameValidator_ThrowsOnNullValue()
        {
            var target = new DeviceNameValidator();

            target.Validate("test", null);
        }
Example #3
0
        public void DeviceNameValidator_WorksCorrectly()
        {
            var target = new DeviceNameValidator();

            target.Validate("test", "droid2");                          //Example devicename taken from https://pushover.net/api#registration
        }