public void Validate_should_throw_for_SignWithSpecificKey_if_tag_keyId_invalid(string signKeyId)
        {
            var args = new GitCreateTagArgs(TagName, Revision, TagOperation.SignWithSpecificKey, signKeyId: signKeyId);
            var cmd  = new GitCreateTagCmd(args, TagMessageFile);

            Assert.Throws <ArgumentException>(() => cmd.Validate());
        }
Пример #2
0
        public void Tag_key_id_null(string signKeyId)
        {
            var args = new GitCreateTagArgs(TagName, Revision, TagOperation.SignWithSpecificKey, signKeyId: signKeyId);
            var cmd  = new GitCreateTagCmd(args, _tagMessageFile);

            cmd.Validate();
        }
        public void Validate_should_throw_if_tag_revision_invalid(string revision)
        {
            var args = new GitCreateTagArgs(TagName, revision);
            var cmd  = new GitCreateTagCmd(args, TagMessageFile);

            Assert.Throws <ArgumentException>(() => cmd.Validate());
        }
Пример #4
0
        public void Tag_revision_null(string revision)
        {
            var args = new GitCreateTagArgs(TagName, revision);
            var cmd  = new GitCreateTagCmd(args, _tagMessageFile);

            cmd.Validate();
        }
        public void Tag_revision_null(string revision)
        {
            var args = new GitCreateTagArgs(TagName, revision);
            var cmd  = new GitCreateTagCmd(args, _tagMessageFile);

            Assert.Throws <ArgumentException>(() => cmd.Validate());
        }
Пример #6
0
        public void Tag_revision_null()
        {
            GitCreateTagCmd cmd = CreateDefaultCommand();

            cmd.Args.Revision = null;
            cmd.Validate();
        }
Пример #7
0
        public void Tag_name_null()
        {
            GitCreateTagCmd cmd = CreateDefaultCommand();

            cmd.Args.TagName = null;
            cmd.Validate();
        }
Пример #8
0
        public void Tag_key_id_null()
        {
            GitCreateTagCmd cmd = CreateDefaultCommand();

            cmd.Args.OperationType = TagOperation.SignWithSpecificKey;
            cmd.Args.SignKeyId     = null;

            cmd.Validate();
        }