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()); }
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()); }
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()); }
public void Tag_revision_null() { GitCreateTagCmd cmd = CreateDefaultCommand(); cmd.Args.Revision = null; cmd.Validate(); }
public void Tag_name_null() { GitCreateTagCmd cmd = CreateDefaultCommand(); cmd.Args.TagName = null; cmd.Validate(); }
public void Tag_key_id_null() { GitCreateTagCmd cmd = CreateDefaultCommand(); cmd.Args.OperationType = TagOperation.SignWithSpecificKey; cmd.Args.SignKeyId = null; cmd.Validate(); }