Browse Source

Change the extensions of approved ApprovalTest files for a better editing experience in the failure case.

Daniel C. Weber 7 years ago
parent
commit
4ac22ea8bb

+ 0 - 0
Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Api/ApiApprovalTests.Aliases.approved.txt → Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Api/ApiApprovalTests.Aliases.approved.cs


+ 0 - 0
Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Api/ApiApprovalTests.Core.approved.txt → Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Api/ApiApprovalTests.Core.approved.cs


+ 0 - 0
Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Api/ApiApprovalTests.Testing.approved.txt → Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Api/ApiApprovalTests.Testing.approved.cs


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

@@ -30,21 +30,21 @@ namespace ReactiveTests.Tests.Api
         public void Core()
         {
             var publicApi = GeneratePublicApi(typeof(System.Reactive.Unit).Assembly);
-            Approvals.Verify(publicApi);
+            Approvals.Verify(new ApprovalTextWriter(publicApi, "cs"));
         }
 
         [Fact]
         public void Aliases()
         {
             var publicApi = GeneratePublicApi(typeof(System.Reactive.Observable.Aliases.QueryLanguage).Assembly);
-            Approvals.Verify(publicApi);
+            Approvals.Verify(new ApprovalTextWriter(publicApi, "cs"));
         }
 
         [Fact]
         public void Testing()
         {
             var publicApi = GeneratePublicApi(typeof(Microsoft.Reactive.Testing.TestScheduler).Assembly);
-            Approvals.Verify(publicApi);
+            Approvals.Verify(new ApprovalTextWriter(publicApi, "cs"));
         }
 
         private string GeneratePublicApi(Assembly assembly)

+ 14 - 0
Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Tests.System.Reactive.ApiApprovals.csproj

@@ -8,6 +8,20 @@
     <Optimize>false</Optimize>
   </PropertyGroup>
 
+  <ItemGroup>
+    <Compile Remove="Api\ApiApprovalTests.Aliases.approved.cs" />
+    <Compile Remove="Api\ApiApprovalTests.Core.approved.cs" />
+    <Compile Remove="Api\ApiApprovalTests.Testing.approved.cs" />
+    
+    <None Include="Api\ApiApprovalTests.Aliases.approved.cs" />
+    <None Include="Api\ApiApprovalTests.Core.approved.cs" />
+    <None Include="Api\ApiApprovalTests.Testing.approved.cs" />
+    
+    <None Include="Api\ApiApprovalTests.Aliases.approved.cs" />
+    <None Include="Api\ApiApprovalTests.Core.approved.cs" />
+    <None Include="Api\ApiApprovalTests.Testing.approved.cs" />
+  </ItemGroup>
+
   <ItemGroup>
     <Content Include="xunit.runner.json">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>