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));
        }
Exemple #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));
        }
 public void SutIsCreateTagCommand(CreateTagCommand sut)
 {
     Assert.IsAssignableFrom<ICreateTagCommand>(sut);
 }
Exemple #4
0
 public void SutIsCreateTagCommand(CreateTagCommand sut)
 {
     Assert.IsAssignableFrom <ICreateTagCommand>(sut);
 }