Skip to content

Commit 6465818

Browse files
authored
Revert "Update ApprovalTests to 7.0.0 and revert workaround " (#2610)
This reverts commit 3676a9e.
1 parent 3676a9e commit 6465818

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<!-- Runtime dependencies -->
1414
<PackageVersion Include="Microsoft.Bcl.Memory" Version="9.0.6" />
1515
<!-- external dependencies -->
16-
<PackageVersion Include="ApprovalTests" Version="7.0.0" />
16+
<PackageVersion Include="ApprovalTests" Version="7.0.0-beta.3" />
1717
<PackageVersion Include="BenchmarkDotNet" Version="0.13.1" />
1818
<PackageVersion Include="AwesomeAssertions" Version="8.1.0" />
1919
<PackageVersion Include="Microsoft.DotNet.PlatformAbstractions" Version="3.1.6" />
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
using ApprovalTests.Reporters;
2-
using ApprovalTests.Reporters.TestFrameworks;
1+
// Alias workaround for https://github.com/approvals/ApprovalTests.Net/issues/768
2+
extern alias ApprovalTests;
3+
4+
using ApprovalTests.ApprovalTests.Reporters;
5+
using ApprovalTests.ApprovalTests.Reporters.TestFrameworks;
36

47
// Use globally defined Reporter for ApprovalTests. Please see
58
// https://github.com/approvals/ApprovalTests.Net/blob/master/docs/ApprovalTests/Reporters.md
69

710
[assembly: UseReporter(typeof(FrameworkAssertReporter))]
8-
[assembly: ApprovalTests.Namers.UseApprovalSubdirectory("Approvals")]
11+
12+
[assembly: ApprovalTests.ApprovalTests.Namers.UseApprovalSubdirectory("Approvals")]

src/System.CommandLine.Tests/Help/HelpBuilderTests.Approval.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
// Copyright (c) .NET Foundation and contributors. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4+
// Alias workaround for https://github.com/approvals/ApprovalTests.Net/issues/768
5+
extern alias ApprovalTests;
6+
47
using Xunit;
58
using System.IO;
6-
using ApprovalTests;
7-
using ApprovalTests.Reporters;
9+
using ApprovalTests.ApprovalTests;
10+
using ApprovalTests.ApprovalTests.Reporters;
811

912
namespace System.CommandLine.Tests.Help
1013
{

src/System.CommandLine.Tests/System.CommandLine.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
</ItemGroup>
3131

3232
<ItemGroup>
33-
<PackageReference Include="ApprovalTests" />
33+
<!-- Alias workaround for https://github.com/approvals/ApprovalTests.Net/issues/768 -->
34+
<PackageReference Include="ApprovalTests" Aliases="ApprovalTests" />
3435
<PackageReference Include="AwesomeAssertions" />
3536
<PackageReference Include="Newtonsoft.Json" />
3637
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" />

0 commit comments

Comments
 (0)