From 3c04aaa67c5a7c2cfc58d0579dc72e5e421aa4f1 Mon Sep 17 00:00:00 2001 From: Romfos Date: Thu, 30 Nov 2023 23:14:11 +0100 Subject: [PATCH] Enable ImplicitUsings --- .../Attributes/FromSelectorAttribute.cs | 2 -- .../Attributes/RouteAttribute.cs | 2 -- .../Attributes/SelectorAttribute.cs | 2 -- src/AutoTests.Framework.Components/ComponentsSteps.cs | 4 ---- src/AutoTests.Framework.Components/Contracts/IClick.cs | 2 -- src/AutoTests.Framework.Components/Contracts/IEnabled.cs | 2 -- src/AutoTests.Framework.Components/Contracts/IGetValue.cs | 2 -- src/AutoTests.Framework.Components/Contracts/ISetValue.cs | 1 - src/AutoTests.Framework.Components/Contracts/IVisible.cs | 2 -- .../Services/ApplicationFactory.cs | 3 --- .../Services/ComponentService.cs | 2 -- .../Components/TrivialButton.cs | 2 -- src/AutoTests.Framework.Playwright/Components/TrivialInput.cs | 2 -- src/AutoTests.Framework.Playwright/Components/TrivialLabel.cs | 2 -- src/AutoTests.Framework.Playwright/NavigationSteps.cs | 1 - src/AutoTests.Framework.Playwright/PlaywrightHooks.cs | 1 - src/AutoTests.Framework.Tests/Components/Model/Button.cs | 1 - src/AutoTests.Framework.Tests/Components/Model/Input.cs | 1 - .../Components/Model/LocatorComponent.cs | 1 - src/AutoTests.Framework.Tests/Expressions/Steps.cs | 1 - src/AutoTests.Framework.Tests/Models/Steps.cs | 2 -- src/AutoTests.Framework/Data/DataLoader.cs | 4 ---- src/AutoTests.Framework/Expressions/ArgumentExpression.cs | 2 -- src/AutoTests.Framework/Expressions/IExpressionService.cs | 2 -- .../Expressions/RoslynCSharpExpressionService.cs | 2 -- src/AutoTests.Framework/Models/ExpressionSpecflowHooks.cs | 2 -- src/AutoTests.Framework/Models/IModel.cs | 3 --- src/AutoTests.Framework/Models/Model.cs | 4 ---- src/Directory.Build.props | 1 + 29 files changed, 1 insertion(+), 57 deletions(-) diff --git a/src/AutoTests.Framework.Components/Attributes/FromSelectorAttribute.cs b/src/AutoTests.Framework.Components/Attributes/FromSelectorAttribute.cs index e92d82fe..b54d3996 100644 --- a/src/AutoTests.Framework.Components/Attributes/FromSelectorAttribute.cs +++ b/src/AutoTests.Framework.Components/Attributes/FromSelectorAttribute.cs @@ -1,5 +1,3 @@ -using System; - namespace AutoTests.Framework.Components.Attributes; [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] diff --git a/src/AutoTests.Framework.Components/Attributes/RouteAttribute.cs b/src/AutoTests.Framework.Components/Attributes/RouteAttribute.cs index 4ca571be..a6c6f8bf 100644 --- a/src/AutoTests.Framework.Components/Attributes/RouteAttribute.cs +++ b/src/AutoTests.Framework.Components/Attributes/RouteAttribute.cs @@ -1,5 +1,3 @@ -using System; - namespace AutoTests.Framework.Components.Attributes; [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] diff --git a/src/AutoTests.Framework.Components/Attributes/SelectorAttribute.cs b/src/AutoTests.Framework.Components/Attributes/SelectorAttribute.cs index 524689b0..c98480af 100644 --- a/src/AutoTests.Framework.Components/Attributes/SelectorAttribute.cs +++ b/src/AutoTests.Framework.Components/Attributes/SelectorAttribute.cs @@ -1,5 +1,3 @@ -using System; - namespace AutoTests.Framework.Components.Attributes; [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] diff --git a/src/AutoTests.Framework.Components/ComponentsSteps.cs b/src/AutoTests.Framework.Components/ComponentsSteps.cs index 3da16a99..d0f9b40e 100644 --- a/src/AutoTests.Framework.Components/ComponentsSteps.cs +++ b/src/AutoTests.Framework.Components/ComponentsSteps.cs @@ -2,10 +2,6 @@ using AutoTests.Framework.Components.Contracts; using AutoTests.Framework.Components.Services; using AutoTests.Framework.Expressions; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using TechTalk.SpecFlow; namespace AutoTests.Framework.Components; diff --git a/src/AutoTests.Framework.Components/Contracts/IClick.cs b/src/AutoTests.Framework.Components/Contracts/IClick.cs index e374c46a..eb133aa8 100644 --- a/src/AutoTests.Framework.Components/Contracts/IClick.cs +++ b/src/AutoTests.Framework.Components/Contracts/IClick.cs @@ -1,5 +1,3 @@ -using System.Threading.Tasks; - namespace AutoTests.Framework.Components.Contracts; public interface IClick diff --git a/src/AutoTests.Framework.Components/Contracts/IEnabled.cs b/src/AutoTests.Framework.Components/Contracts/IEnabled.cs index 0c8545ca..38ca4f4e 100644 --- a/src/AutoTests.Framework.Components/Contracts/IEnabled.cs +++ b/src/AutoTests.Framework.Components/Contracts/IEnabled.cs @@ -1,5 +1,3 @@ -using System.Threading.Tasks; - namespace AutoTests.Framework.Components.Contracts; public interface IEnabled diff --git a/src/AutoTests.Framework.Components/Contracts/IGetValue.cs b/src/AutoTests.Framework.Components/Contracts/IGetValue.cs index 14608ed0..b959d957 100644 --- a/src/AutoTests.Framework.Components/Contracts/IGetValue.cs +++ b/src/AutoTests.Framework.Components/Contracts/IGetValue.cs @@ -1,5 +1,3 @@ -using System.Threading.Tasks; - namespace AutoTests.Framework.Components.Contracts; public interface IGetValue diff --git a/src/AutoTests.Framework.Components/Contracts/ISetValue.cs b/src/AutoTests.Framework.Components/Contracts/ISetValue.cs index c4c0e5f9..c4ed02c8 100644 --- a/src/AutoTests.Framework.Components/Contracts/ISetValue.cs +++ b/src/AutoTests.Framework.Components/Contracts/ISetValue.cs @@ -1,5 +1,4 @@ using AutoTests.Framework.Expressions; -using System.Threading.Tasks; namespace AutoTests.Framework.Components.Contracts; diff --git a/src/AutoTests.Framework.Components/Contracts/IVisible.cs b/src/AutoTests.Framework.Components/Contracts/IVisible.cs index ba5279e1..174552ed 100644 --- a/src/AutoTests.Framework.Components/Contracts/IVisible.cs +++ b/src/AutoTests.Framework.Components/Contracts/IVisible.cs @@ -1,5 +1,3 @@ -using System.Threading.Tasks; - namespace AutoTests.Framework.Components.Contracts; public interface IVisible diff --git a/src/AutoTests.Framework.Components/Services/ApplicationFactory.cs b/src/AutoTests.Framework.Components/Services/ApplicationFactory.cs index 7fce8004..00b80992 100644 --- a/src/AutoTests.Framework.Components/Services/ApplicationFactory.cs +++ b/src/AutoTests.Framework.Components/Services/ApplicationFactory.cs @@ -1,10 +1,7 @@ using AutoTests.Framework.Components.Application; using AutoTests.Framework.Components.Attributes; using BoDi; -using System; using System.Collections.Concurrent; -using System.IO; -using System.Linq; using System.Reflection; using System.Text.Json; diff --git a/src/AutoTests.Framework.Components/Services/ComponentService.cs b/src/AutoTests.Framework.Components/Services/ComponentService.cs index 9898b20c..50367d47 100644 --- a/src/AutoTests.Framework.Components/Services/ComponentService.cs +++ b/src/AutoTests.Framework.Components/Services/ComponentService.cs @@ -1,7 +1,5 @@ using AutoTests.Framework.Components.Application; using AutoTests.Framework.Components.Attributes; -using System; -using System.Linq; using System.Reflection; namespace AutoTests.Framework.Components.Services; diff --git a/src/AutoTests.Framework.Playwright/Components/TrivialButton.cs b/src/AutoTests.Framework.Playwright/Components/TrivialButton.cs index 8eea41e7..a1d5444c 100644 --- a/src/AutoTests.Framework.Playwright/Components/TrivialButton.cs +++ b/src/AutoTests.Framework.Playwright/Components/TrivialButton.cs @@ -1,8 +1,6 @@ using AutoTests.Framework.Components.Attributes; using AutoTests.Framework.Components.Contracts; using Microsoft.Playwright; -using System; -using System.Threading.Tasks; namespace AutoTests.Framework.Playwright.Components; diff --git a/src/AutoTests.Framework.Playwright/Components/TrivialInput.cs b/src/AutoTests.Framework.Playwright/Components/TrivialInput.cs index 6eac68fa..5cb5ae8f 100644 --- a/src/AutoTests.Framework.Playwright/Components/TrivialInput.cs +++ b/src/AutoTests.Framework.Playwright/Components/TrivialInput.cs @@ -2,8 +2,6 @@ using AutoTests.Framework.Components.Contracts; using AutoTests.Framework.Expressions; using Microsoft.Playwright; -using System; -using System.Threading.Tasks; namespace AutoTests.Framework.Playwright.Components; diff --git a/src/AutoTests.Framework.Playwright/Components/TrivialLabel.cs b/src/AutoTests.Framework.Playwright/Components/TrivialLabel.cs index 2a9a7ba8..dee6ff05 100644 --- a/src/AutoTests.Framework.Playwright/Components/TrivialLabel.cs +++ b/src/AutoTests.Framework.Playwright/Components/TrivialLabel.cs @@ -1,8 +1,6 @@ using AutoTests.Framework.Components.Attributes; using AutoTests.Framework.Components.Contracts; using Microsoft.Playwright; -using System; -using System.Threading.Tasks; namespace AutoTests.Framework.Playwright.Components; diff --git a/src/AutoTests.Framework.Playwright/NavigationSteps.cs b/src/AutoTests.Framework.Playwright/NavigationSteps.cs index 98631155..80bd4af9 100644 --- a/src/AutoTests.Framework.Playwright/NavigationSteps.cs +++ b/src/AutoTests.Framework.Playwright/NavigationSteps.cs @@ -1,6 +1,5 @@ using AutoTests.Framework.Expressions; using Microsoft.Playwright; -using System.Threading.Tasks; using TechTalk.SpecFlow; namespace AutoTests.Framework.Playwright; diff --git a/src/AutoTests.Framework.Playwright/PlaywrightHooks.cs b/src/AutoTests.Framework.Playwright/PlaywrightHooks.cs index 9edf44ca..c27b3bee 100644 --- a/src/AutoTests.Framework.Playwright/PlaywrightHooks.cs +++ b/src/AutoTests.Framework.Playwright/PlaywrightHooks.cs @@ -1,6 +1,5 @@ using BoDi; using Microsoft.Playwright; -using System.Threading.Tasks; using TechTalk.SpecFlow; namespace AutoTests.Framework.Playwright; diff --git a/src/AutoTests.Framework.Tests/Components/Model/Button.cs b/src/AutoTests.Framework.Tests/Components/Model/Button.cs index 9c127bea..1dad3304 100644 --- a/src/AutoTests.Framework.Tests/Components/Model/Button.cs +++ b/src/AutoTests.Framework.Tests/Components/Model/Button.cs @@ -1,5 +1,4 @@ using AutoTests.Framework.Components.Contracts; -using System.Threading.Tasks; namespace AutoTests.Framework.Tests.Components.Model; diff --git a/src/AutoTests.Framework.Tests/Components/Model/Input.cs b/src/AutoTests.Framework.Tests/Components/Model/Input.cs index 92b4b12e..a66f2354 100644 --- a/src/AutoTests.Framework.Tests/Components/Model/Input.cs +++ b/src/AutoTests.Framework.Tests/Components/Model/Input.cs @@ -1,6 +1,5 @@ using AutoTests.Framework.Components.Contracts; using AutoTests.Framework.Expressions; -using System.Threading.Tasks; namespace AutoTests.Framework.Tests.Components.Model; diff --git a/src/AutoTests.Framework.Tests/Components/Model/LocatorComponent.cs b/src/AutoTests.Framework.Tests/Components/Model/LocatorComponent.cs index 4fffd006..a361f9ff 100644 --- a/src/AutoTests.Framework.Tests/Components/Model/LocatorComponent.cs +++ b/src/AutoTests.Framework.Tests/Components/Model/LocatorComponent.cs @@ -1,6 +1,5 @@ using AutoTests.Framework.Components.Attributes; using AutoTests.Framework.Components.Contracts; -using System.Threading.Tasks; namespace AutoTests.Framework.Tests.Components.Model; diff --git a/src/AutoTests.Framework.Tests/Expressions/Steps.cs b/src/AutoTests.Framework.Tests/Expressions/Steps.cs index 893a1852..32f16e44 100644 --- a/src/AutoTests.Framework.Tests/Expressions/Steps.cs +++ b/src/AutoTests.Framework.Tests/Expressions/Steps.cs @@ -1,6 +1,5 @@ using AutoTests.Framework.Expressions; using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Threading.Tasks; using TechTalk.SpecFlow; namespace AutoTests.Framework.Tests.Expressions; diff --git a/src/AutoTests.Framework.Tests/Models/Steps.cs b/src/AutoTests.Framework.Tests/Models/Steps.cs index d2895c88..3e53e0bc 100644 --- a/src/AutoTests.Framework.Tests/Models/Steps.cs +++ b/src/AutoTests.Framework.Tests/Models/Steps.cs @@ -1,7 +1,5 @@ using AutoTests.Framework.Models; using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Linq; -using System.Threading.Tasks; using TechTalk.SpecFlow; namespace AutoTests.Framework.Tests.Models; diff --git a/src/AutoTests.Framework/Data/DataLoader.cs b/src/AutoTests.Framework/Data/DataLoader.cs index a7000daf..85f159a3 100644 --- a/src/AutoTests.Framework/Data/DataLoader.cs +++ b/src/AutoTests.Framework/Data/DataLoader.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; using System.Dynamic; -using System.IO; -using System.Linq; using System.Reflection; using System.Text.Json; using System.Text.RegularExpressions; diff --git a/src/AutoTests.Framework/Expressions/ArgumentExpression.cs b/src/AutoTests.Framework/Expressions/ArgumentExpression.cs index 67e6a55f..627f28e5 100644 --- a/src/AutoTests.Framework/Expressions/ArgumentExpression.cs +++ b/src/AutoTests.Framework/Expressions/ArgumentExpression.cs @@ -1,5 +1,3 @@ -using System.Threading.Tasks; - namespace AutoTests.Framework.Expressions; public sealed class ArgumentExpression(IExpressionService expressionService, string text) diff --git a/src/AutoTests.Framework/Expressions/IExpressionService.cs b/src/AutoTests.Framework/Expressions/IExpressionService.cs index bad96321..46d71773 100644 --- a/src/AutoTests.Framework/Expressions/IExpressionService.cs +++ b/src/AutoTests.Framework/Expressions/IExpressionService.cs @@ -1,5 +1,3 @@ -using System.Threading.Tasks; - namespace AutoTests.Framework.Expressions; public interface IExpressionService diff --git a/src/AutoTests.Framework/Expressions/RoslynCSharpExpressionService.cs b/src/AutoTests.Framework/Expressions/RoslynCSharpExpressionService.cs index 5139dceb..cc80dc36 100644 --- a/src/AutoTests.Framework/Expressions/RoslynCSharpExpressionService.cs +++ b/src/AutoTests.Framework/Expressions/RoslynCSharpExpressionService.cs @@ -1,7 +1,5 @@ using Microsoft.CodeAnalysis.CSharp.Scripting; using Microsoft.CodeAnalysis.Scripting; -using System; -using System.Threading.Tasks; namespace AutoTests.Framework.Expressions; diff --git a/src/AutoTests.Framework/Models/ExpressionSpecflowHooks.cs b/src/AutoTests.Framework/Models/ExpressionSpecflowHooks.cs index cf9ea03d..a332e835 100644 --- a/src/AutoTests.Framework/Models/ExpressionSpecflowHooks.cs +++ b/src/AutoTests.Framework/Models/ExpressionSpecflowHooks.cs @@ -1,6 +1,4 @@ using AutoTests.Framework.Expressions; -using System.Collections.Generic; -using System.Linq; using TechTalk.SpecFlow; namespace AutoTests.Framework.Models; diff --git a/src/AutoTests.Framework/Models/IModel.cs b/src/AutoTests.Framework/Models/IModel.cs index 5a8cc455..fd6a6096 100644 --- a/src/AutoTests.Framework/Models/IModel.cs +++ b/src/AutoTests.Framework/Models/IModel.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Threading.Tasks; - namespace AutoTests.Framework.Models; public interface IModel diff --git a/src/AutoTests.Framework/Models/Model.cs b/src/AutoTests.Framework/Models/Model.cs index dc42121a..c31ad9b5 100644 --- a/src/AutoTests.Framework/Models/Model.cs +++ b/src/AutoTests.Framework/Models/Model.cs @@ -1,10 +1,6 @@ using AutoTests.Framework.Expressions; -using System; -using System.Collections.Generic; -using System.Linq; using System.Text.Json; using System.Text.Json.Serialization; -using System.Threading.Tasks; using TechTalk.SpecFlow; namespace AutoTests.Framework.Models; diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 2d78db62..bddd725f 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -4,6 +4,7 @@ true 12 enable + enable \ No newline at end of file