コード例 #1
0
        public void UserOrGroupKeyValidator_ThrowsOnNullValue()
        {
            var target = new UserOrGroupKeyValidator();

            target.Validate("test", null);
        }
コード例 #2
0
        public void UserOrGroupKeyValidator_WorksCorrectly_ForGroupKeys()
        {
            var target = new UserOrGroupKeyValidator();

            target.Validate("test", "gznej3rKEVAvPUxu9vvNnqpmZpokzF");  //Example group key taken from https://pushover.net/api#identifiers
        }
コード例 #3
0
        public void UserOrGroupKeyValidator_ThrowsOnInvalidKey()
        {
            var target = new UserOrGroupKeyValidator();

            target.Validate("test", "ThisShouldFail");
        }
コード例 #4
0
        public void UserOrGroupKeyValidator_WorksCorrectly_ForUserKeys()
        {
            var target = new UserOrGroupKeyValidator();

            target.Validate("test", "uQiRzpo4DXghDmr9QzzfQu27cmVRsG");  //Example user key taken from https://pushover.net/api#identifiers
        }