Skip to content

Commit

Permalink
deps: Update dependency xunit to version 2.6.2
Browse files Browse the repository at this point in the history
Updates-dependency: xunit
Updates-dependency-from-version: 2.5.1
Updates-dependency-to-version: 2.6.2
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <[email protected]>
Co-authored-by: Andreas Grünwald <[email protected]>
Pull-Request: #107
  • Loading branch information
3 people authored Nov 26, 2023
1 parent d60c322 commit 80edbc7
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 57 deletions.
2 changes: 1 addition & 1 deletion src/SharedBuild.Test/Grynwald.SharedBuild.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4" PrivateAssets="all" />
<PackageReference Include="coverlet.collector" Version="6.0.0" PrivateAssets="all" />
<PackageReference Include="Cake.Testing" Version="3.1.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class PullRequest
[InlineData("true", "23", null, false)]
[InlineData("true", "23", "TfsGit", false)]
[InlineData("true", "23", "GitHub", true)]
public void IsPullRequest_returns_expected_value_when_building_a_GitHub_PR_on_Azure_Pipelines(string tfBuild, string system_PullRequest_PullRequestId, string build_Repository_Provider, bool expected)
public void IsPullRequest_returns_expected_value_when_building_a_GitHub_PR_on_Azure_Pipelines(string? tfBuild, string? system_PullRequest_PullRequestId, string? build_Repository_Provider, bool expected)
{
// ARRANGE
var context = new FakeCakeContext();
Expand All @@ -43,7 +43,7 @@ public void IsPullRequest_returns_expected_value_when_building_a_GitHub_PR_on_Az
[InlineData("true", "23", null, null, 0)]
[InlineData("true", "23", "TfsGit", null, 0)]
[InlineData("true", "23", "GitHub", "42", 42)]
public void PullRequestNumber_returns_expected_value(string tfBuild, string system_PullRequest_PullRequestId, string build_Repository_Provider, string system_PullRequest_PullRequestNumber, int expected)
public void PullRequestNumber_returns_expected_value(string? tfBuild, string? system_PullRequest_PullRequestId, string? build_Repository_Provider, string? system_PullRequest_PullRequestNumber, int expected)
{

// ARRANGE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,29 +53,29 @@ public class GitHubProjectInfoTest : EqualityTest<GitHubProjectInfo, GitHubProje
[InlineData("")]
[InlineData(" ")]
[InlineData("\t")]
public void Host_must_not_be_null_or_whitespace(string host)
public void Host_must_not_be_null_or_whitespace(string? host)
{
Assert.Throws<ArgumentException>(() => new GitHubProjectInfo(host, "user", "repo"));
Assert.Throws<ArgumentException>(() => new GitHubProjectInfo(host!, "user", "repo"));
}

[Theory]
[InlineData(null)]
[InlineData("")]
[InlineData(" ")]
[InlineData("\t")]
public void User_must_not_be_null_or_whitespace(string user)
public void User_must_not_be_null_or_whitespace(string? user)
{
Assert.Throws<ArgumentException>(() => new GitHubProjectInfo("example.com", user, "repo"));
Assert.Throws<ArgumentException>(() => new GitHubProjectInfo("example.com", user!, "repo"));
}

[Theory]
[InlineData(null)]
[InlineData("")]
[InlineData(" ")]
[InlineData("\t")]
public void Project_must_not_be_null_or_whitespace(string project)
public void Project_must_not_be_null_or_whitespace(string? project)
{
Assert.Throws<ArgumentException>(() => new GitHubProjectInfo("example.com", "user", project));
Assert.Throws<ArgumentException>(() => new GitHubProjectInfo("example.com", "user", project!));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public class GitHubUrlParserTest
[InlineData("not-a-url")]
[InlineData("http://github.com/owner/another-name/repo.git")] // to many segments in the path
[InlineData("ftp://github.com/owner/repo.git")] // unsupported scheme
public void ParseRemoteUrl_throws_ArgumentException_for_invalid_input(string url)
public void ParseRemoteUrl_throws_ArgumentException_for_invalid_input(string? url)
{
Assert.ThrowsAny<ArgumentException>(() => GitHubUrlParser.ParseRemoteUrl(url));
Assert.ThrowsAny<ArgumentException>(() => GitHubUrlParser.ParseRemoteUrl(url!));
}

[Theory]
Expand Down Expand Up @@ -50,9 +50,9 @@ public void ParseRemoteUrl_returns_the_expected_GitHubProjectInfo(string url, st
[InlineData("not-a-url")]
[InlineData("http://github.com/owner/another-name/repo.git")] // to many segments in the path
[InlineData("ftp://github.com/owner/repo.git")] // unsupported scheme
public void TryParseRemoteUrl_returns_false_for_invalid_input(string url)
public void TryParseRemoteUrl_returns_false_for_invalid_input(string? url)
{
Assert.False(GitHubUrlParser.TryParseRemoteUrl(url, out var uri));
Assert.False(GitHubUrlParser.TryParseRemoteUrl(url!, out var uri));
}

[Theory]
Expand Down
82 changes: 38 additions & 44 deletions src/SharedBuild.Test/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@
},
"xunit": {
"type": "Direct",
"requested": "[2.5.1, )",
"resolved": "2.5.1",
"contentHash": "WJJ7Ruxv1INF4ySosVZ0fN1dGhzNBEdLLZoIVn4TPU8CbYgaxUebAL/VPaBneXGT3EDE2llsJ2cKzGkGeZSY4Q==",
"requested": "[2.6.2, )",
"resolved": "2.6.2",
"contentHash": "sErOyzTZBfgeLcdu5y3CkhCirZikCe9GwEv56jbQRjSa4FyI2tIHjfBRvlWqg7M78bfAGajrreH0IHnxrUOpVA==",
"dependencies": {
"xunit.analyzers": "1.3.0",
"xunit.assert": "2.5.1",
"xunit.core": "[2.5.1]"
"xunit.analyzers": "1.6.0",
"xunit.assert": "2.6.2",
"xunit.core": "[2.6.2]"
}
},
"xunit.runner.visualstudio": {
Expand Down Expand Up @@ -1241,42 +1241,39 @@
},
"xunit.analyzers": {
"type": "Transitive",
"resolved": "1.3.0",
"contentHash": "gSk+8RC6UZ6Fzx1OHoB2bPyENeg3WHIeJhB/hb4oZNN0pW0dwOuplJay6OnqFIvW8T37re/RB4PWpEvayWIO1Q=="
"resolved": "1.6.0",
"contentHash": "b/Wbrqr/bFvcjqAbYdJyCCvjz+PjjKMnoK/K6sbcCBu94pqAkB2vBAHFo87wNq2awsLPAuq5MA7q0XexyQ3mJQ=="
},
"xunit.assert": {
"type": "Transitive",
"resolved": "2.5.1",
"contentHash": "eMvuz6PFdD3DDeaXkFVwMzNZ40zcRoM9Zz3siAyWgfiAucSNOWZnVgqC8hSHbdMd98Gy6o0yIYG6mq4Tg37rrQ==",
"dependencies": {
"NETStandard.Library": "1.6.1"
}
"resolved": "2.6.2",
"contentHash": "JOj2+zWS08M59bCk3MkZFcKj2Izb2zwkHSPIKJLvnZYLR2Nw6HifjvBCpa8XhMF3mxDuGwZ0+ncmlhE9WoEaZw=="
},
"xunit.core": {
"type": "Transitive",
"resolved": "2.5.1",
"contentHash": "Tzuz//XwPJYAmC9FBIwgBgo5gb2kSoppDwkisyYhq0wtwxhv+gOJwtqUgkgk8Hr19B616Zol03LkD18r2e4AxA==",
"resolved": "2.6.2",
"contentHash": "LxJ06D9uTDyvHY52+Lym2TUlq3ObgAKSTuzM9gniau8qI1fd/CPag4PFaGs0RJfunUJtYHg9+XrS5EcW/5dxGA==",
"dependencies": {
"xunit.extensibility.core": "[2.5.1]",
"xunit.extensibility.execution": "[2.5.1]"
"xunit.extensibility.core": "[2.6.2]",
"xunit.extensibility.execution": "[2.6.2]"
}
},
"xunit.extensibility.core": {
"type": "Transitive",
"resolved": "2.5.1",
"contentHash": "XGPiWP7D/KIY/fzdmU9gx7eDt0QD0IAWOy54LI+ckLZCqFMupIFochC3dHRxykuAz+L0nYvz6PxDdR2UcgNmDw==",
"resolved": "2.6.2",
"contentHash": "T8CmshbP1EeaDibLwgU/aEe53zrW0+x+mEz5aKxexS5vVyj1UwgDUjcTK/+prMF/9KgMHkgx1vIe7wv58wO6RQ==",
"dependencies": {
"NETStandard.Library": "1.6.1",
"xunit.abstractions": "2.0.3"
}
},
"xunit.extensibility.execution": {
"type": "Transitive",
"resolved": "2.5.1",
"contentHash": "I5IUervdZoKLD66TUcqsJDXcB3ui9RxzKe0MQGzEi4Hsxkaoz0YylmvwqW2nd3nilyqqIAs0OUaZf/faKPxY6w==",
"resolved": "2.6.2",
"contentHash": "kKo7XqyLF8blXGqQHlqKQ+AzST42kpB7oG81Km/kFEzWVfeDMgaEquOLAr/ZiR4tnkUbbWYrY6CJPTavFqGn6Q==",
"dependencies": {
"NETStandard.Library": "1.6.1",
"xunit.extensibility.core": "[2.5.1]"
"xunit.extensibility.core": "[2.6.2]"
}
},
"grynwald.sharedbuild": {
Expand Down Expand Up @@ -1343,13 +1340,13 @@
},
"xunit": {
"type": "Direct",
"requested": "[2.5.1, )",
"resolved": "2.5.1",
"contentHash": "WJJ7Ruxv1INF4ySosVZ0fN1dGhzNBEdLLZoIVn4TPU8CbYgaxUebAL/VPaBneXGT3EDE2llsJ2cKzGkGeZSY4Q==",
"requested": "[2.6.2, )",
"resolved": "2.6.2",
"contentHash": "sErOyzTZBfgeLcdu5y3CkhCirZikCe9GwEv56jbQRjSa4FyI2tIHjfBRvlWqg7M78bfAGajrreH0IHnxrUOpVA==",
"dependencies": {
"xunit.analyzers": "1.3.0",
"xunit.assert": "2.5.1",
"xunit.core": "[2.5.1]"
"xunit.analyzers": "1.6.0",
"xunit.assert": "2.6.2",
"xunit.core": "[2.6.2]"
}
},
"xunit.runner.visualstudio": {
Expand Down Expand Up @@ -2530,42 +2527,39 @@
},
"xunit.analyzers": {
"type": "Transitive",
"resolved": "1.3.0",
"contentHash": "gSk+8RC6UZ6Fzx1OHoB2bPyENeg3WHIeJhB/hb4oZNN0pW0dwOuplJay6OnqFIvW8T37re/RB4PWpEvayWIO1Q=="
"resolved": "1.6.0",
"contentHash": "b/Wbrqr/bFvcjqAbYdJyCCvjz+PjjKMnoK/K6sbcCBu94pqAkB2vBAHFo87wNq2awsLPAuq5MA7q0XexyQ3mJQ=="
},
"xunit.assert": {
"type": "Transitive",
"resolved": "2.5.1",
"contentHash": "eMvuz6PFdD3DDeaXkFVwMzNZ40zcRoM9Zz3siAyWgfiAucSNOWZnVgqC8hSHbdMd98Gy6o0yIYG6mq4Tg37rrQ==",
"dependencies": {
"NETStandard.Library": "1.6.1"
}
"resolved": "2.6.2",
"contentHash": "JOj2+zWS08M59bCk3MkZFcKj2Izb2zwkHSPIKJLvnZYLR2Nw6HifjvBCpa8XhMF3mxDuGwZ0+ncmlhE9WoEaZw=="
},
"xunit.core": {
"type": "Transitive",
"resolved": "2.5.1",
"contentHash": "Tzuz//XwPJYAmC9FBIwgBgo5gb2kSoppDwkisyYhq0wtwxhv+gOJwtqUgkgk8Hr19B616Zol03LkD18r2e4AxA==",
"resolved": "2.6.2",
"contentHash": "LxJ06D9uTDyvHY52+Lym2TUlq3ObgAKSTuzM9gniau8qI1fd/CPag4PFaGs0RJfunUJtYHg9+XrS5EcW/5dxGA==",
"dependencies": {
"xunit.extensibility.core": "[2.5.1]",
"xunit.extensibility.execution": "[2.5.1]"
"xunit.extensibility.core": "[2.6.2]",
"xunit.extensibility.execution": "[2.6.2]"
}
},
"xunit.extensibility.core": {
"type": "Transitive",
"resolved": "2.5.1",
"contentHash": "XGPiWP7D/KIY/fzdmU9gx7eDt0QD0IAWOy54LI+ckLZCqFMupIFochC3dHRxykuAz+L0nYvz6PxDdR2UcgNmDw==",
"resolved": "2.6.2",
"contentHash": "T8CmshbP1EeaDibLwgU/aEe53zrW0+x+mEz5aKxexS5vVyj1UwgDUjcTK/+prMF/9KgMHkgx1vIe7wv58wO6RQ==",
"dependencies": {
"NETStandard.Library": "1.6.1",
"xunit.abstractions": "2.0.3"
}
},
"xunit.extensibility.execution": {
"type": "Transitive",
"resolved": "2.5.1",
"contentHash": "I5IUervdZoKLD66TUcqsJDXcB3ui9RxzKe0MQGzEi4Hsxkaoz0YylmvwqW2nd3nilyqqIAs0OUaZf/faKPxY6w==",
"resolved": "2.6.2",
"contentHash": "kKo7XqyLF8blXGqQHlqKQ+AzST42kpB7oG81Km/kFEzWVfeDMgaEquOLAr/ZiR4tnkUbbWYrY6CJPTavFqGn6Q==",
"dependencies": {
"NETStandard.Library": "1.6.1",
"xunit.extensibility.core": "[2.5.1]"
"xunit.extensibility.core": "[2.6.2]"
}
},
"grynwald.sharedbuild": {
Expand Down

0 comments on commit 80edbc7

Please sign in to comment.