Esempio n. 1
0
        public void DeviceNameValidator_ThrowsOnInvalidKey()
        {
            var target = new DeviceNameValidator();

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

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

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