示例#1
0
        public void ExecuteCorrectlyCreatesTag(
            CreateTagCommand sut,
            ITagInfo tagInfo)
        {
            tagInfo.Of(
                i => i.AccessToken == "*******"
                    && i.Owner == "jwChung"
                    && i.Repository == "CIBuild"
                    && i.ReleaseNotes == "test"
                    && i.AuthorName == "Jin-Wook Chung"
                    && i.AuthorEmail == "*****@*****.**"
                    && i.RefOrSha == "refs/heads/master"
                    && i.TagName == Guid.NewGuid().ToString("N"));

            Assert.DoesNotThrow(() => sut.Execute(tagInfo));
        }
示例#2
0
        public void ExecuteCorrectlyCreatesTag(
            CreateTagCommand sut,
            ITagInfo tagInfo)
        {
            tagInfo.Of(
                i => i.AccessToken == "*******" &&
                i.Owner == "jwChung" &&
                i.Repository == "CIBuild" &&
                i.ReleaseNotes == "test" &&
                i.AuthorName == "Jin-Wook Chung" &&
                i.AuthorEmail == "*****@*****.**" &&
                i.RefOrSha == "refs/heads/master" &&
                i.TagName == Guid.NewGuid().ToString("N"));

            Assert.DoesNotThrow(() => sut.Execute(tagInfo));
        }
示例#3
0
 public void SutIsCreateTagCommand(CreateTagCommand sut)
 {
     Assert.IsAssignableFrom<ICreateTagCommand>(sut);
 }
示例#4
0
 public void SutIsCreateTagCommand(CreateTagCommand sut)
 {
     Assert.IsAssignableFrom <ICreateTagCommand>(sut);
 }