Exemple #1
0
            public async Task IfComponentsAdded_ReturnsFields()
            {
                var issue = new RemoteIssue()
                {
                    key = "foo"
                }.ToLocal(TestableJira.Create());
                var component = new RemoteComponent()
                {
                    id = "1", name = "1.0"
                };

                issue.Components.Add(component.ToLocal());

                var fields = await GetUpdatedFieldsForIssueAsync(issue);

                Assert.Single(fields);
                Assert.Equal("components", fields[0].id);
                Assert.Equal("1", fields[0].values[0]);
            }
            public void IfComponentsAdded_ReturnsFields()
            {
                var issue = new RemoteIssue()
                {
                    key = "foo"
                }.ToLocal();
                var component = new RemoteComponent()
                {
                    id = "1", name = "1.0"
                };

                issue.Components.Add(component.ToLocal());

                var fields = GetUpdatedFieldsForIssue(issue);

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