From bc6616a3ea5525fa9e62451b16b8ffc4d141bb01 Mon Sep 17 00:00:00 2001 From: Romfos Date: Thu, 30 Nov 2023 23:13:34 +0100 Subject: [PATCH] Enable ImplicitUsings --- src/Directory.Build.props | 1 + src/TestFixture.Tests/ClassTests.cs | 1 - src/TestFixture.Tests/CollectionsTests.cs | 3 --- src/TestFixture.Tests/PrimitiveTests.cs | 1 - src/TestFixture.Tests/Services/TestFixtureBuilder.cs | 2 -- src/TestFixture/Factories/Collections/ArrayFactory.cs | 2 -- .../Factories/Collections/AsyncEnumerableFactory.cs | 3 --- src/TestFixture/Factories/Collections/DictionaryFactory.cs | 3 --- .../Collections/Immutable/ImmutableDictionaryFactory.cs | 1 - src/TestFixture/Factories/Collections/ListFactory.cs | 2 -- src/TestFixture/Factories/DefaultClassFactory.cs | 2 -- src/TestFixture/Factories/EnumFactory.cs | 1 - src/TestFixture/Factories/Primitives/FloatFactory.cs | 1 - src/TestFixture/Factories/System/DateOnlyFactory.cs | 1 - src/TestFixture/Factories/System/DateTimeOffsetFactory.cs | 1 - src/TestFixture/Factories/System/TimeOnlyFactory.cs | 1 - src/TestFixture/Factories/System/UriFactory.cs | 2 -- src/TestFixture/Fixture.cs | 3 --- src/TestFixture/Providers/ArrayFactoryProvider.cs | 1 - src/TestFixture/Providers/EnumFactoryProvider.cs | 1 - src/TestFixture/Providers/GenericFactoryProvider.cs | 1 - src/TestFixture/Providers/IFactoryProvider.cs | 1 - src/TestFixture/Services/IRandomService.cs | 2 -- src/TestFixture/Services/RandomService.cs | 2 -- src/TestFixture/SharedFixtureState.cs | 2 -- 25 files changed, 1 insertion(+), 40 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 36744c6..359e3e3 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -4,6 +4,7 @@ True enable 12.0 + enable \ No newline at end of file diff --git a/src/TestFixture.Tests/ClassTests.cs b/src/TestFixture.Tests/ClassTests.cs index 428ce14..c416a45 100644 --- a/src/TestFixture.Tests/ClassTests.cs +++ b/src/TestFixture.Tests/ClassTests.cs @@ -1,6 +1,5 @@ using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; using TestFixture.Tests.Services; namespace TestFixture.Tests; diff --git a/src/TestFixture.Tests/CollectionsTests.cs b/src/TestFixture.Tests/CollectionsTests.cs index 61a023f..c3e3e04 100644 --- a/src/TestFixture.Tests/CollectionsTests.cs +++ b/src/TestFixture.Tests/CollectionsTests.cs @@ -1,9 +1,6 @@ using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Collections.Generic; using System.Collections.Immutable; -using System.Linq; -using System.Threading.Tasks; using TestFixture.Tests.Services; namespace TestFixture.Tests; diff --git a/src/TestFixture.Tests/PrimitiveTests.cs b/src/TestFixture.Tests/PrimitiveTests.cs index a8889e6..15b3aa0 100644 --- a/src/TestFixture.Tests/PrimitiveTests.cs +++ b/src/TestFixture.Tests/PrimitiveTests.cs @@ -1,6 +1,5 @@ using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; using TestFixture.Tests.Services; namespace TestFixture.Tests; diff --git a/src/TestFixture.Tests/Services/TestFixtureBuilder.cs b/src/TestFixture.Tests/Services/TestFixtureBuilder.cs index 8c40dcf..1bec4ea 100644 --- a/src/TestFixture.Tests/Services/TestFixtureBuilder.cs +++ b/src/TestFixture.Tests/Services/TestFixtureBuilder.cs @@ -1,6 +1,4 @@ using NSubstitute; -using System; -using System.Collections.Generic; using TestFixture.Services; namespace TestFixture.Tests.Services; diff --git a/src/TestFixture/Factories/Collections/ArrayFactory.cs b/src/TestFixture/Factories/Collections/ArrayFactory.cs index 1c562b4..e6ede74 100644 --- a/src/TestFixture/Factories/Collections/ArrayFactory.cs +++ b/src/TestFixture/Factories/Collections/ArrayFactory.cs @@ -1,5 +1,3 @@ -using System.Linq; - namespace TestFixture.Factories.Collections; internal sealed class ArrayFactory : IFactory diff --git a/src/TestFixture/Factories/Collections/AsyncEnumerableFactory.cs b/src/TestFixture/Factories/Collections/AsyncEnumerableFactory.cs index 614c503..da226ae 100644 --- a/src/TestFixture/Factories/Collections/AsyncEnumerableFactory.cs +++ b/src/TestFixture/Factories/Collections/AsyncEnumerableFactory.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Linq; - namespace TestFixture.Factories.Collections; internal sealed class AsyncEnumerableFactory : IFactory diff --git a/src/TestFixture/Factories/Collections/DictionaryFactory.cs b/src/TestFixture/Factories/Collections/DictionaryFactory.cs index 95afe73..033fae6 100644 --- a/src/TestFixture/Factories/Collections/DictionaryFactory.cs +++ b/src/TestFixture/Factories/Collections/DictionaryFactory.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Linq; - namespace TestFixture.Factories.Collections; internal sealed class DictionaryFactory : IFactory diff --git a/src/TestFixture/Factories/Collections/Immutable/ImmutableDictionaryFactory.cs b/src/TestFixture/Factories/Collections/Immutable/ImmutableDictionaryFactory.cs index 701e3ab..5a4c880 100644 --- a/src/TestFixture/Factories/Collections/Immutable/ImmutableDictionaryFactory.cs +++ b/src/TestFixture/Factories/Collections/Immutable/ImmutableDictionaryFactory.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.Collections.Immutable; namespace TestFixture.Factories.Collections.Immutable; diff --git a/src/TestFixture/Factories/Collections/ListFactory.cs b/src/TestFixture/Factories/Collections/ListFactory.cs index 2cad3e0..377be1d 100644 --- a/src/TestFixture/Factories/Collections/ListFactory.cs +++ b/src/TestFixture/Factories/Collections/ListFactory.cs @@ -1,5 +1,3 @@ -using System.Linq; - namespace TestFixture.Factories.Collections; internal sealed class ListFactory : IFactory diff --git a/src/TestFixture/Factories/DefaultClassFactory.cs b/src/TestFixture/Factories/DefaultClassFactory.cs index ee6f706..fd5c9c8 100644 --- a/src/TestFixture/Factories/DefaultClassFactory.cs +++ b/src/TestFixture/Factories/DefaultClassFactory.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using System.Reflection; namespace TestFixture.Factories; diff --git a/src/TestFixture/Factories/EnumFactory.cs b/src/TestFixture/Factories/EnumFactory.cs index df4c6b7..b6dda1d 100644 --- a/src/TestFixture/Factories/EnumFactory.cs +++ b/src/TestFixture/Factories/EnumFactory.cs @@ -1,4 +1,3 @@ -using System; using TestFixture.Services; namespace TestFixture.Factories; diff --git a/src/TestFixture/Factories/Primitives/FloatFactory.cs b/src/TestFixture/Factories/Primitives/FloatFactory.cs index 7f1bae3..ed0a453 100644 --- a/src/TestFixture/Factories/Primitives/FloatFactory.cs +++ b/src/TestFixture/Factories/Primitives/FloatFactory.cs @@ -1,4 +1,3 @@ -using System; using TestFixture.Services; namespace TestFixture.Factories.Primitives; diff --git a/src/TestFixture/Factories/System/DateOnlyFactory.cs b/src/TestFixture/Factories/System/DateOnlyFactory.cs index 1e40976..d1dfbae 100644 --- a/src/TestFixture/Factories/System/DateOnlyFactory.cs +++ b/src/TestFixture/Factories/System/DateOnlyFactory.cs @@ -1,4 +1,3 @@ -using System; using TestFixture.Services; namespace TestFixture.Factories.System; diff --git a/src/TestFixture/Factories/System/DateTimeOffsetFactory.cs b/src/TestFixture/Factories/System/DateTimeOffsetFactory.cs index c8ab81a..8ddd436 100644 --- a/src/TestFixture/Factories/System/DateTimeOffsetFactory.cs +++ b/src/TestFixture/Factories/System/DateTimeOffsetFactory.cs @@ -1,4 +1,3 @@ -using System; using TestFixture.Services; namespace TestFixture.Factories.System; diff --git a/src/TestFixture/Factories/System/TimeOnlyFactory.cs b/src/TestFixture/Factories/System/TimeOnlyFactory.cs index 69a41d4..6803a31 100644 --- a/src/TestFixture/Factories/System/TimeOnlyFactory.cs +++ b/src/TestFixture/Factories/System/TimeOnlyFactory.cs @@ -1,4 +1,3 @@ -using System; using TestFixture.Services; namespace TestFixture.Factories.Primitives; diff --git a/src/TestFixture/Factories/System/UriFactory.cs b/src/TestFixture/Factories/System/UriFactory.cs index 58ad49c..f2f4300 100644 --- a/src/TestFixture/Factories/System/UriFactory.cs +++ b/src/TestFixture/Factories/System/UriFactory.cs @@ -1,5 +1,3 @@ -using System; - namespace TestFixture.Factories.System; internal sealed class UriFactory : IFactory diff --git a/src/TestFixture/Fixture.cs b/src/TestFixture/Fixture.cs index 8cc3b32..11eab14 100644 --- a/src/TestFixture/Fixture.cs +++ b/src/TestFixture/Fixture.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using TestFixture.Factories; using TestFixture.Providers; diff --git a/src/TestFixture/Providers/ArrayFactoryProvider.cs b/src/TestFixture/Providers/ArrayFactoryProvider.cs index 5606b96..da5e4fe 100644 --- a/src/TestFixture/Providers/ArrayFactoryProvider.cs +++ b/src/TestFixture/Providers/ArrayFactoryProvider.cs @@ -1,4 +1,3 @@ -using System; using TestFixture.Factories; using TestFixture.Factories.Collections; diff --git a/src/TestFixture/Providers/EnumFactoryProvider.cs b/src/TestFixture/Providers/EnumFactoryProvider.cs index d9c9734..30de10c 100644 --- a/src/TestFixture/Providers/EnumFactoryProvider.cs +++ b/src/TestFixture/Providers/EnumFactoryProvider.cs @@ -1,4 +1,3 @@ -using System; using TestFixture.Factories; namespace TestFixture.Providers; diff --git a/src/TestFixture/Providers/GenericFactoryProvider.cs b/src/TestFixture/Providers/GenericFactoryProvider.cs index c5711a5..fe41029 100644 --- a/src/TestFixture/Providers/GenericFactoryProvider.cs +++ b/src/TestFixture/Providers/GenericFactoryProvider.cs @@ -1,4 +1,3 @@ -using System; using TestFixture.Factories; namespace TestFixture.Providers; diff --git a/src/TestFixture/Providers/IFactoryProvider.cs b/src/TestFixture/Providers/IFactoryProvider.cs index a851848..106e91f 100644 --- a/src/TestFixture/Providers/IFactoryProvider.cs +++ b/src/TestFixture/Providers/IFactoryProvider.cs @@ -1,4 +1,3 @@ -using System; using TestFixture.Factories; namespace TestFixture.Providers; diff --git a/src/TestFixture/Services/IRandomService.cs b/src/TestFixture/Services/IRandomService.cs index 816763d..5d75262 100644 --- a/src/TestFixture/Services/IRandomService.cs +++ b/src/TestFixture/Services/IRandomService.cs @@ -1,5 +1,3 @@ -using System; - namespace TestFixture.Services; public interface IRandomService diff --git a/src/TestFixture/Services/RandomService.cs b/src/TestFixture/Services/RandomService.cs index 4706647..ed654b8 100644 --- a/src/TestFixture/Services/RandomService.cs +++ b/src/TestFixture/Services/RandomService.cs @@ -1,5 +1,3 @@ -using System; - namespace TestFixture.Services; public sealed class RandomService : IRandomService diff --git a/src/TestFixture/SharedFixtureState.cs b/src/TestFixture/SharedFixtureState.cs index 1a45bf4..b7e6e56 100644 --- a/src/TestFixture/SharedFixtureState.cs +++ b/src/TestFixture/SharedFixtureState.cs @@ -1,6 +1,4 @@ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Collections.Immutable; using TestFixture.Factories; using TestFixture.Factories.Collections;