Skip to content

Commit 4ac22ea

Browse files
committed
Change the extensions of approved ApprovalTest files for a better editing experience in the failure case.
1 parent 9a6e8b2 commit 4ac22ea

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Api/ApiApprovalTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ public ApiApprovalTests(ITestOutputHelper output)
3030
public void Core()
3131
{
3232
var publicApi = GeneratePublicApi(typeof(System.Reactive.Unit).Assembly);
33-
Approvals.Verify(publicApi);
33+
Approvals.Verify(new ApprovalTextWriter(publicApi, "cs"));
3434
}
3535

3636
[Fact]
3737
public void Aliases()
3838
{
3939
var publicApi = GeneratePublicApi(typeof(System.Reactive.Observable.Aliases.QueryLanguage).Assembly);
40-
Approvals.Verify(publicApi);
40+
Approvals.Verify(new ApprovalTextWriter(publicApi, "cs"));
4141
}
4242

4343
[Fact]
4444
public void Testing()
4545
{
4646
var publicApi = GeneratePublicApi(typeof(Microsoft.Reactive.Testing.TestScheduler).Assembly);
47-
Approvals.Verify(publicApi);
47+
Approvals.Verify(new ApprovalTextWriter(publicApi, "cs"));
4848
}
4949

5050
private string GeneratePublicApi(Assembly assembly)

Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Tests.System.Reactive.ApiApprovals.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@
88
<Optimize>false</Optimize>
99
</PropertyGroup>
1010

11+
<ItemGroup>
12+
<Compile Remove="Api\ApiApprovalTests.Aliases.approved.cs" />
13+
<Compile Remove="Api\ApiApprovalTests.Core.approved.cs" />
14+
<Compile Remove="Api\ApiApprovalTests.Testing.approved.cs" />
15+
16+
<None Include="Api\ApiApprovalTests.Aliases.approved.cs" />
17+
<None Include="Api\ApiApprovalTests.Core.approved.cs" />
18+
<None Include="Api\ApiApprovalTests.Testing.approved.cs" />
19+
20+
<None Include="Api\ApiApprovalTests.Aliases.approved.cs" />
21+
<None Include="Api\ApiApprovalTests.Core.approved.cs" />
22+
<None Include="Api\ApiApprovalTests.Testing.approved.cs" />
23+
</ItemGroup>
24+
1125
<ItemGroup>
1226
<Content Include="xunit.runner.json">
1327
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

0 commit comments

Comments
 (0)