Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/0.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Aug 22, 2020
2 parents 2c19302 + c906a29 commit 3eb87b3
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Cake.Issues.PullRequests.AzureDevOps.Tests
{
using System;
using Cake.AzureDevOps.Authentication;
using Cake.Issues.Testing;
using Xunit;

Expand All @@ -12,7 +13,7 @@ public sealed class TheCtor
public void Should_Throw_If_RepositoryUrl_For_SourceRefName_Is_Null()
{
// Given / When
var result = Record.Exception(() => new AzureDevOpsPullRequestSystemSettings(null, "foo", null));
var result = Record.Exception(() => new AzureDevOpsPullRequestSystemSettings(null, "foo", new AzureDevOpsNtlmCredentials()));

// Then
result.IsArgumentNullException("repositoryUrl");
Expand All @@ -22,7 +23,7 @@ public void Should_Throw_If_RepositoryUrl_For_SourceRefName_Is_Null()
public void Should_Throw_If_SourceRefName_Is_Null()
{
// Given / When
var result = Record.Exception(() => new AzureDevOpsPullRequestSystemSettings(new Uri("http://example.com"), null, null));
var result = Record.Exception(() => new AzureDevOpsPullRequestSystemSettings(new Uri("http://example.com"), null, new AzureDevOpsNtlmCredentials()));

// Then
result.IsArgumentNullException("sourceRefName");
Expand All @@ -32,7 +33,7 @@ public void Should_Throw_If_SourceRefName_Is_Null()
public void Should_Throw_If_SourceRefName_Is_Empty()
{
// Given / When
var result = Record.Exception(() => new AzureDevOpsPullRequestSystemSettings(new Uri("http://example.com"), string.Empty, null));
var result = Record.Exception(() => new AzureDevOpsPullRequestSystemSettings(new Uri("http://example.com"), string.Empty, new AzureDevOpsNtlmCredentials()));

// Then
result.IsArgumentOutOfRangeException("sourceRefName");
Expand All @@ -42,7 +43,7 @@ public void Should_Throw_If_SourceRefName_Is_Empty()
public void Should_Throw_If_SourceRefName_Is_WhiteSpace()
{
// Given / When
var result = Record.Exception(() => new AzureDevOpsPullRequestSystemSettings(new Uri("http://example.com"), " ", null));
var result = Record.Exception(() => new AzureDevOpsPullRequestSystemSettings(new Uri("http://example.com"), " ", new AzureDevOpsNtlmCredentials()));

// Then
result.IsArgumentOutOfRangeException("sourceRefName");
Expand All @@ -52,7 +53,7 @@ public void Should_Throw_If_SourceRefName_Is_WhiteSpace()
public void Should_Throw_If_RepositoryUrl_For_PullRequestId_Is_Null()
{
// Given / When
var result = Record.Exception(() => new AzureDevOpsPullRequestSystemSettings(null, 0, null));
var result = Record.Exception(() => new AzureDevOpsPullRequestSystemSettings(null, 0, new AzureDevOpsNtlmCredentials()));

// Then
result.IsArgumentNullException("repositoryUrl");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.33.0" />
<PackageReference Include="Cake.Issues" Version="0.9.0-beta0002" />
<PackageReference Include="Cake.Issues.PullRequests" Version="0.9.0-beta0002" />
<PackageReference Include="Cake.Issues.Testing" Version="0.9.0-beta0002" />
<PackageReference Include="Cake.Issues" Version="0.9.0" />
<PackageReference Include="Cake.Issues.PullRequests" Version="0.9.0" />
<PackageReference Include="Cake.Issues.Testing" Version="0.9.0" />
<PackageReference Include="Cake.Testing" Version="0.33.0" />
<PackageReference Include="Cake.AzureDevOps" Version="0.4.0" />
<PackageReference Include="Cake.AzureDevOps" Version="0.5.0" />
<PackageReference Include="NSubstitute" Version="4.2.2" />
<PackageReference Include="Shouldly" Version="3.0.2" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
Expand All @@ -33,4 +33,4 @@
<ProjectReference Include="..\Cake.Issues.PullRequests.AzureDevOps\Cake.Issues.PullRequests.AzureDevOps.csproj" />
</ItemGroup>

</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Cake.Issues.PullRequests.AzureDevOps.Tests.Capabilities
{
using Cake.AzureDevOps.PullRequest.CommentThread;
using Cake.AzureDevOps.Repos.PullRequest.CommentThread;
using Cake.Issues.PullRequests.AzureDevOps.Capabilities;
using Cake.Issues.Testing;
using Shouldly;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Cake.Issues.PullRequests.AzureDevOps.Tests.Capabilities
{
using Cake.AzureDevOps.PullRequest.CommentThread;
using Cake.AzureDevOps.Repos.PullRequest.CommentThread;
using Cake.Issues.PullRequests.AzureDevOps.Capabilities;
using Shouldly;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
using System.Collections.Generic;
using System.Linq;
using Cake.AzureDevOps.PullRequest.CommentThread;
using Cake.AzureDevOps.Repos.PullRequest.CommentThread;
using Cake.Issues.PullRequests.AzureDevOps.Capabilities;
using Cake.Issues.Testing;
using Shouldly;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Cake.AzureDevOps.PullRequest;
using Cake.AzureDevOps.PullRequest.CommentThread;
using Cake.AzureDevOps.Repos.PullRequest;
using Cake.AzureDevOps.Repos.PullRequest.CommentThread;
using Cake.Core.Diagnostics;
using Cake.Core.IO;
using Cake.Issues.PullRequests.AzureDevOps.Capabilities;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
using System;
using Cake.AzureDevOps.Authentication;
using Cake.AzureDevOps.PullRequest;
using Cake.AzureDevOps.Repos.PullRequest;

/// <summary>
/// Settings for <see cref="AzureDevOpsPullRequestSystemAliases"/>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ See the Project Site for an overview of the whole ecosystem of addins for workin
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/cake-contrib/Cake.Issues.PullRequests.AzureDevOps.git</RepositoryUrl>
<PackageReleaseNotes>https://github.com/cake-contrib/Cake.Issues.PullRequests.AzureDevOps/releases/tag/0.8.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/cake-contrib/Cake.Issues.PullRequests.AzureDevOps/releases/tag/0.9.0</PackageReleaseNotes>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
Expand All @@ -43,14 +43,14 @@ See the Project Site for an overview of the whole ecosystem of addins for workin

<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.33.0" PrivateAssets="All" />
<PackageReference Include="Cake.Issues" Version="0.9.0-beta0002" PrivateAssets="All" />
<PackageReference Include="Cake.Issues.PullRequests" Version="0.9.0-beta0002" PrivateAssets="All" />
<PackageReference Include="Cake.AzureDevOps" Version="0.4.0" PrivateAssets="All" />
<PackageReference Include="Cake.Issues" Version="0.9.0" PrivateAssets="All" />
<PackageReference Include="Cake.Issues.PullRequests" Version="0.9.0" PrivateAssets="All" />
<PackageReference Include="Cake.AzureDevOps" Version="0.5.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<None Include="icon.png" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Cake.Issues.PullRequests.AzureDevOps.Capabilities
{
using Cake.AzureDevOps.PullRequest.CommentThread;
using Cake.AzureDevOps.Repos.PullRequest.CommentThread;

/// <summary>
/// Extensions for <see cref="AzureDevOpsComment"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Cake.Issues.PullRequests.AzureDevOps.Capabilities
{
using Cake.AzureDevOps.PullRequest.CommentThread;
using Cake.AzureDevOps.Repos.PullRequest.CommentThread;

/// <summary>
/// Extensions for <see cref="AzureDevOpsCommentThreadStatus"/> enumeration.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Cake.Issues.PullRequests.AzureDevOps.Capabilities
{
using System.Linq;
using Cake.AzureDevOps.PullRequest.CommentThread;
using Cake.AzureDevOps.Repos.PullRequest.CommentThread;

/// <summary>
/// Extensions for <see cref="AzureDevOpsPullRequestCommentThread"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Cake.Issues.PullRequests.AzureDevOps
{
using Cake.AzureDevOps.PullRequest;
using Cake.AzureDevOps.Repos.PullRequest;

/// <summary>
/// Interface for writing issues to Azure DevOps pull requests.
Expand Down

0 comments on commit 3eb87b3

Please sign in to comment.