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 485bfff commit 70f91a0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 19 deletions.
6 changes: 6 additions & 0 deletions src/ApprovalTests.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
global using System.Diagnostics;
global using System.Net;
global using ApprovalTests;
global using ApprovalTests.Email;
global using ApprovalTests.Events;
Expand All @@ -7,7 +8,12 @@
global using ApprovalTests.Namers;
global using ApprovalTests.Namers.StackTraceParsers;
global using ApprovalTests.Reporters;
global using ApprovalTests.Scrubber;
global using ApprovalTests.WindowsRegistry;
global using ApprovalUtilities.Persistence;
global using ApprovalUtilities.SimpleLogger;
global using ApprovalUtilities.Utilities;
global using iText.Kernel.Pdf;
global using iText.Layout;
global using iText.Layout.Element;
global using NUnit.Framework;
7 changes: 1 addition & 6 deletions src/ApprovalTests.Tests/Pdf/PdfTest.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using ApprovalTests.Scrubber;
using iText.Kernel.Pdf;
using iText.Layout;
using iText.Layout.Element;

[TestFixture]
[TestFixture]
public class PdfTest
{
[TestCase("""
Expand Down
2 changes: 0 additions & 2 deletions src/ApprovalTests.Tests/Persistence/WeatherLoader.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Net;

class WeatherLoader : IExecutableQuery
{
readonly string weatherStationId;
Expand Down
11 changes: 3 additions & 8 deletions src/ApprovalTests.Tests/WebApi/RestCallTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Net;
using ApprovalTests.WebApi.MicrosoftHttpClient;
using ApprovalTests.WebApi.MicrosoftHttpClient;

[TestFixture]
public class RestCallTest
Expand All @@ -11,13 +10,9 @@ public void TestGoogleQuery()
}
}

public class GoogleQuery : RestQuery<GoogleQueryResults>
public class GoogleQuery(string searchTerm) :
RestQuery<GoogleQueryResults>
{
readonly string searchTerm;

public GoogleQuery(string searchTerm) =>
this.searchTerm = searchTerm;

public override string GetQuery() =>
$"?v=1.0&q={searchTerm}";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using ApprovalTests.WindowsRegistry;

[TestFixture]
[TestFixture]
public class RegistryAssertTests
{
const string KeyName = @"Software\TestDummy";
Expand Down

0 comments on commit 70f91a0

Please sign in to comment.