From a50843080cf05e6c101f10b61c876508b20ea323 Mon Sep 17 00:00:00 2001 From: pengweiqhca Date: Mon, 6 May 2024 09:02:10 +0800 Subject: [PATCH] Remove unused namespace. --- .../MinimalApiHostBuilderFactory.cs | 3 --- src/Xunit.DependencyInjection/MethodDataAttribute.cs | 4 +--- .../Verifiers/CSharpAnalyzerVerifier`1.cs | 1 - .../Verifiers/CSharpCodeFixVerifier`2.cs | 1 - .../Verifiers/CSharpCodeRefactoringVerifier`1.cs | 1 - test/Xunit.DependencyInjection.Test.AspNetCore/Startup.cs | 1 - .../TestServerTest.cs | 5 +---- 7 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/Xunit.DependencyInjection.AspNetCoreTesting/MinimalApiHostBuilderFactory.cs b/src/Xunit.DependencyInjection.AspNetCoreTesting/MinimalApiHostBuilderFactory.cs index 49c66d1..f0bb102 100644 --- a/src/Xunit.DependencyInjection.AspNetCoreTesting/MinimalApiHostBuilderFactory.cs +++ b/src/Xunit.DependencyInjection.AspNetCoreTesting/MinimalApiHostBuilderFactory.cs @@ -1,11 +1,8 @@ using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Hosting.Server; using Microsoft.AspNetCore.Mvc.ApplicationParts; using Microsoft.AspNetCore.Mvc.Testing; -using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Hosting; using System.Linq.Expressions; using System.Reflection; diff --git a/src/Xunit.DependencyInjection/MethodDataAttribute.cs b/src/Xunit.DependencyInjection/MethodDataAttribute.cs index 3a879c4..c13e36c 100644 --- a/src/Xunit.DependencyInjection/MethodDataAttribute.cs +++ b/src/Xunit.DependencyInjection/MethodDataAttribute.cs @@ -1,6 +1,4 @@ -using System.ComponentModel; - -namespace Xunit.DependencyInjection; +namespace Xunit.DependencyInjection; /// /// Provides a data source for a data theory. diff --git a/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpAnalyzerVerifier`1.cs b/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpAnalyzerVerifier`1.cs index 0eef287..6da4547 100644 --- a/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpAnalyzerVerifier`1.cs +++ b/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpAnalyzerVerifier`1.cs @@ -3,7 +3,6 @@ using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Testing; using Microsoft.CodeAnalysis.Testing.Verifiers; -using System.Collections.Immutable; namespace Xunit.DependencyInjection.Analyzer.Test.Verifiers; diff --git a/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpCodeFixVerifier`2.cs b/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpCodeFixVerifier`2.cs index 78a68f2..f68d416 100644 --- a/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpCodeFixVerifier`2.cs +++ b/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpCodeFixVerifier`2.cs @@ -4,7 +4,6 @@ using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Testing; using Microsoft.CodeAnalysis.Testing.Verifiers; -using System.Collections.Immutable; namespace Xunit.DependencyInjection.Analyzer.Test.Verifiers; diff --git a/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpCodeRefactoringVerifier`1.cs b/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpCodeRefactoringVerifier`1.cs index 34cd8ea..f9973f3 100644 --- a/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpCodeRefactoringVerifier`1.cs +++ b/test/Xunit.DependencyInjection.Analyzer.Test/Verifiers/CSharpCodeRefactoringVerifier`1.cs @@ -1,6 +1,5 @@ using Microsoft.CodeAnalysis.CodeRefactorings; using Microsoft.CodeAnalysis.Testing; -using System.Collections.Immutable; namespace Xunit.DependencyInjection.Analyzer.Test.Verifiers; diff --git a/test/Xunit.DependencyInjection.Test.AspNetCore/Startup.cs b/test/Xunit.DependencyInjection.Test.AspNetCore/Startup.cs index 8959638..b4157a9 100644 --- a/test/Xunit.DependencyInjection.Test.AspNetCore/Startup.cs +++ b/test/Xunit.DependencyInjection.Test.AspNetCore/Startup.cs @@ -1,7 +1,6 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Xunit; diff --git a/test/Xunit.DependencyInjection.Test.AspNetCore/TestServerTest.cs b/test/Xunit.DependencyInjection.Test.AspNetCore/TestServerTest.cs index 23fa194..0e2b5bd 100644 --- a/test/Xunit.DependencyInjection.Test.AspNetCore/TestServerTest.cs +++ b/test/Xunit.DependencyInjection.Test.AspNetCore/TestServerTest.cs @@ -1,7 +1,4 @@ -using Microsoft.AspNetCore.Hosting.Server; -using Microsoft.AspNetCore.TestHost; - -namespace Xunit.DependencyInjection.Test.AspNetCore; +namespace Xunit.DependencyInjection.Test.AspNetCore; public class TestServerTest(HttpClient httpClient) {