Пример #1
0
            public async Task IfAddAffectsVersion_ReturnAllFieldsThatChanged()
            {
                var issue = new RemoteIssue()
                {
                    key = "foo"
                }.ToLocal(TestableJira.Create());
                var version = new RemoteVersion()
                {
                    id = "1", name = "1.0"
                };

                issue.AffectsVersions.Add(version.ToLocal(TestableJira.Create()));

                var fields = await GetUpdatedFieldsForIssueAsync(issue);

                Assert.Single(fields);
                Assert.Equal("versions", fields[0].id);
                Assert.Equal("1", fields[0].values[0]);
            }
Пример #2
0
            public void IfAddAffectsVersion_ReturnAllFieldsThatChanged()
            {
                var issue = new RemoteIssue()
                {
                    key = "foo"
                }.ToLocal();
                var version = new RemoteVersion()
                {
                    id = "1", name = "1.0"
                };

                issue.AffectsVersions.Add(version.ToLocal());

                var fields = GetUpdatedFieldsForIssue(issue);

                Assert.Equal(1, fields.Length);
                Assert.Equal("versions", fields[0].id);
                Assert.Equal("1", fields[0].values[0]);
            }