From 445b6cda1e9dd56384cb06730febcfbfe6447cdb Mon Sep 17 00:00:00 2001 From: Nirmal Guru Date: Sun, 14 Mar 2021 09:50:03 +0530 Subject: [PATCH] Fix SA1208, SA1210, SA1505 warnings Code SA1208: Using directive should appear before other directives. Code SA1210: Using directives should be ordered alphabetically by the namespaces. Code SA1505: An opening brace should not be followed by a blank line. --- .../Controls/GridSplitterTest.cs | 17 +++++++++-------- .../Controls/RangeSelectorTest.cs | 6 +++--- .../Controls/RichSuggestBoxTest.cs | 2 +- UITests/UITests.Tests.Shared/UITestBase.cs | 5 +++-- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/UITests/UITests.Tests.Shared/Controls/GridSplitterTest.cs b/UITests/UITests.Tests.Shared/Controls/GridSplitterTest.cs index 2827b4f0b8e..4e09ea8dbb9 100644 --- a/UITests/UITests.Tests.Shared/Controls/GridSplitterTest.cs +++ b/UITests/UITests.Tests.Shared/Controls/GridSplitterTest.cs @@ -2,15 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Windows.Apps.Test.Foundation; -using Microsoft.Windows.Apps.Test.Foundation.Controls; -using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common; -using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra; -using System.Linq; -using System.Threading.Tasks; +using System; using System.Collections.Generic; using System.Dynamic; -using System; +using System.Linq; +using System.Threading.Tasks; + +using Microsoft.Windows.Apps.Test.Foundation; +using Microsoft.Windows.Apps.Test.Foundation.Controls; #if USING_TAEF using WEX.Logging.Interop; @@ -20,9 +19,11 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; #endif +using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common; +using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra; + namespace UITests.Tests { - [TestClass] public class GridSplitterTest : UITestBase { diff --git a/UITests/UITests.Tests.Shared/Controls/RangeSelectorTest.cs b/UITests/UITests.Tests.Shared/Controls/RangeSelectorTest.cs index 9306a8d793c..385271c42ee 100644 --- a/UITests/UITests.Tests.Shared/Controls/RangeSelectorTest.cs +++ b/UITests/UITests.Tests.Shared/Controls/RangeSelectorTest.cs @@ -3,8 +3,6 @@ // See the LICENSE file in the project root for more information. using Microsoft.Windows.Apps.Test.Foundation.Controls; -using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common; -using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra; #if USING_TAEF using WEX.Logging.Interop; @@ -14,9 +12,11 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; #endif +using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common; +using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra; + namespace UITests.Tests { - [TestClass] public class RangeSelectorTest : UITestBase { diff --git a/UITests/UITests.Tests.Shared/Controls/RichSuggestBoxTest.cs b/UITests/UITests.Tests.Shared/Controls/RichSuggestBoxTest.cs index e29fe4f63a4..6d722bd945d 100644 --- a/UITests/UITests.Tests.Shared/Controls/RichSuggestBoxTest.cs +++ b/UITests/UITests.Tests.Shared/Controls/RichSuggestBoxTest.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using Microsoft.Windows.Apps.Test.Automation; using Microsoft.Windows.Apps.Test.Foundation; using Microsoft.Windows.Apps.Test.Foundation.Controls; using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common; using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra; -using Microsoft.Windows.Apps.Test.Automation; #if USING_TAEF using WEX.Logging.Interop; diff --git a/UITests/UITests.Tests.Shared/UITestBase.cs b/UITests/UITests.Tests.Shared/UITestBase.cs index dda9ca51f68..d2a43582449 100644 --- a/UITests/UITests.Tests.Shared/UITestBase.cs +++ b/UITests/UITests.Tests.Shared/UITestBase.cs @@ -6,8 +6,6 @@ using System.IO; using System.Linq; using System.Reflection; -using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common; -using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra; using System.Threading.Tasks; #if USING_TAEF @@ -18,6 +16,9 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; #endif +using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common; +using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra; + namespace UITests.Tests { public abstract class UITestBase