Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed May 11, 2024
1 parent db317f9 commit 6226017
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 26 deletions.
3 changes: 0 additions & 3 deletions src/ApprovalTests.Tests/CombinationApprovalsTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System.Globalization;
using ApprovalTests.Combinations;

public class CombinationApprovalsTests
{
[Test]
Expand Down
4 changes: 1 addition & 3 deletions src/ApprovalTests.Tests/FailedApprovalTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using ApprovalTests.Core.Exceptions;

[TestFixture]
[TestFixture]
[UseReporter(typeof(CleanupReporter))]
public class FailedApprovalTests
{
Expand Down
5 changes: 1 addition & 4 deletions src/ApprovalTests.Tests/FileApproverTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using ApprovalTests.Approvers;
using ApprovalTests.Core.Exceptions;

[TestFixture]
[TestFixture]
public class FileApproverTests
{
[Test]
Expand Down
6 changes: 6 additions & 0 deletions src/ApprovalTests.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
global using System.Diagnostics;
global using System.Globalization;
global using System.Net;
global using System.Runtime.CompilerServices;
global using ApprovalTests;
global using ApprovalTests.Approvers;
global using ApprovalTests.Combinations;
global using ApprovalTests.Core;
global using ApprovalTests.Core.Exceptions;
global using ApprovalTests.Email;
global using ApprovalTests.Events;
global using ApprovalTests.ExceptionalExceptions;
Expand All @@ -10,6 +15,7 @@
global using ApprovalTests.Namers.StackTraceParsers;
global using ApprovalTests.Reporters;
global using ApprovalTests.Scrubber;
global using ApprovalTests.Utilities;
global using ApprovalTests.WindowsRegistry;
global using ApprovalUtilities.Persistence;
global using ApprovalUtilities.SimpleLogger;
Expand Down
4 changes: 1 addition & 3 deletions src/ApprovalTests.Tests/LockDownTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using ApprovalTests.Combinations;

[TestFixture]
[TestFixture]
[UseReporter(typeof(DiffReporter))]
public class LockDownTests
{
Expand Down
2 changes: 0 additions & 2 deletions src/ApprovalTests.Tests/ModuleInitializer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Runtime.CompilerServices;

public static class ModuleInitializer
{
[ModuleInitializer]
Expand Down
2 changes: 0 additions & 2 deletions src/ApprovalTests.Tests/RunMaintenance.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#if(NET48)
using ApprovalTests.Maintenance;

[TestFixture]
public class RunMaintenance
{
Expand Down
4 changes: 1 addition & 3 deletions src/ApprovalTests.Tests/StackTraceScrubberTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using ApprovalTests.Utilities;

[TestFixture]
[TestFixture]
public class StackTraceScrubberTest
{
[Test]
Expand Down
12 changes: 6 additions & 6 deletions src/ApprovalTests.Tests/StringEncodingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ public void TestAscii()
}

#if(NETFRAMEWORK)
[Test]
public void TestUnicode()
{
var text = System.Text.Encoding.Default.GetString([101, 235, 110, 116]);
Approvals.Verify(text);
}
[Test]
public void TestUnicode()
{
var text = System.Text.Encoding.Default.GetString([101, 235, 110, 116]);
Approvals.Verify(text);
}
#endif
}

0 comments on commit 6226017

Please sign in to comment.