Skip to content

Commit fa5a86b

Browse files
committed
Use generic overload (CA2263)
1 parent 6165275 commit fa5a86b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Cake.AzureDevOps.Tests/Repos/PullRequest/CommentThread/AzureDevOpsPullRequestCommentThreadTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void Should_Return_Empty_Comment_Thread()
3232

3333
// Then
3434
thread.ShouldNotBeNull();
35-
thread.InnerThread.ShouldBeOfType(typeof(GitPullRequestCommentThread));
35+
thread.InnerThread.ShouldBeOfType<GitPullRequestCommentThread>();
3636
thread.Id.ShouldBe(default);
3737
thread.FilePath.ShouldBeNull();
3838
thread.Status.ShouldBe(default);

src/Cake.AzureDevOps/Pipelines/AzureDevOpsBuild.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ private async Task<IEnumerable<AzureDevOpsTestResult>> GetTestResults(
687687
runId,
688688
skip: resultCount,
689689
top: resultsToRead,
690-
outcomes: filterOutcomesList?.Select(o => (TestOutcome)Enum.Parse(typeof(TestOutcome), o, true)).ToList())
690+
outcomes: filterOutcomesList?.Select(o => Enum.Parse<TestOutcome>(o, true)).ToList())
691691
.ConfigureAwait(false))
692692
.Select(test =>
693693
new AzureDevOpsTestResult

0 commit comments

Comments
 (0)