Skip to content

Commit

Permalink
Use a global import for MS.VisualStudio.TestTools.UnitTesting.*
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiRulz committed Jul 3, 2024
1 parent ccb69b1 commit 3fb0afa
Show file tree
Hide file tree
Showing 36 changed files with 1 addition and 63 deletions.
2 changes: 0 additions & 2 deletions src/BizHawk.Tests.Testroms.GB.GambatteSuite/GambatteSuite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
using BizHawk.Common.IOExtensions;
using BizHawk.Common.StringExtensions;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using static BizHawk.Tests.Testroms.GB.GBHelper;

namespace BizHawk.Tests.Testroms.GB.GambatteSuite
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: TestDataSourceDiscovery(TestDataSourceDiscoveryOption.DuringExecution)]
2 changes: 0 additions & 2 deletions src/BizHawk.Tests.Testroms.GB/GB_GBC/AcidTestroms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

using BizHawk.Common.IOExtensions;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using static BizHawk.Tests.Testroms.GB.GBHelper;

namespace BizHawk.Tests.Testroms.GB
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests.Testroms.GB/GB_GBC/BullyGB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

using BizHawk.Common.IOExtensions;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using static BizHawk.Tests.Testroms.GB.GBHelper;

namespace BizHawk.Tests.Testroms.GB
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests.Testroms.GB/GB_GBC/CPPTestroms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
using BizHawk.Common.CollectionExtensions;
using BizHawk.Common.IOExtensions;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using static BizHawk.Tests.Testroms.GB.GBHelper;

namespace BizHawk.Tests.Testroms.GB.CPPTestroms
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests.Testroms.GB/GB_GBC/GBHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
using BizHawk.Emulation.Cores.Nintendo.GBHawk;
using BizHawk.Emulation.Cores.Nintendo.Sameboy;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using static BizHawk.Emulation.Cores.Nintendo.Gameboy.Gameboy;
using static BizHawk.Emulation.Cores.Nintendo.GBHawk.GBHawk;
using static BizHawk.Emulation.Cores.Nintendo.Sameboy.Sameboy;
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests.Testroms.GB/GB_GBC/MealybugTearoomTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
using BizHawk.Emulation.Cores.Nintendo.GBHawk;
using BizHawk.Emulation.Cores.Nintendo.Sameboy;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using static BizHawk.Tests.Testroms.GB.GBHelper;

namespace BizHawk.Tests.Testroms.GB
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests.Testroms.GB/GB_GBC/RTC3Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
using BizHawk.Common.IOExtensions;
using BizHawk.Emulation.Cores;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using static BizHawk.Tests.Testroms.GB.GBHelper;

namespace BizHawk.Tests.Testroms.GB
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests.Testroms.GB/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: TestDataSourceDiscovery(TestDataSourceDiscoveryOption.DuringExecution)]
2 changes: 0 additions & 2 deletions src/BizHawk.Tests.Testroms.GB/TestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
using BizHawk.Common;
using BizHawk.Emulation.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Testroms.GB
{
public static class TestUtils
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests/Client.Common/Api/MemoryApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
using BizHawk.Client.Common;
using BizHawk.Emulation.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Client.Common.Api
{
[TestClass]
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests/Client.Common/Display/InputDisplayTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

using BizHawk.Client.Common;
using BizHawk.Common;
using BizHawk.Emulation.Common;
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests/Client.Common/Movie/LogGeneratorTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

using BizHawk.Client.Common;
using BizHawk.Common;
using BizHawk.Emulation.Common;
Expand Down
1 change: 0 additions & 1 deletion src/BizHawk.Tests/Client.Common/Movie/MovieServiceTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using BizHawk.Client.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Client.Common.Movie
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using BizHawk.Client.Common;
using BizHawk.Common;
using BizHawk.Emulation.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Client.Common.Movie
{
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests/Client.Common/cheats/CheatDecoderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
using System.Linq;
using System.Reflection;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using BizHawk.Client.Common;
using BizHawk.Client.Common.cheats;
using BizHawk.Emulation.Common;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
using BizHawk.Common;
using BizHawk.Emulation.Cores;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Client.Common.config
{
[TestClass]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using BizHawk.Client.Common;
using BizHawk.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests/Client.Common/dearchive/DearchivalTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
using BizHawk.Common;
using BizHawk.Common.IOExtensions;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Client.Common.Dearchive
{
[TestClass]
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests/Client.Common/lua/LuaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

using BizHawk.Client.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Client.Common.Lua
{
#if !SKIP_PLATFORM_TESTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

using BizHawk.Common.CollectionExtensions;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using CE = BizHawk.Common.CollectionExtensions.CollectionExtensions;

namespace BizHawk.Tests.Common.CollectionExtensions
Expand Down
1 change: 0 additions & 1 deletion src/BizHawk.Tests/Common/ConversionTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using BizHawk.Common.NumberExtensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Common;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

using BizHawk.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Common.CustomCollections
{
[TestClass]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using BizHawk.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Common
{
[TestClass]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

using BizHawk.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Common.MultiPredicateSort
{
[TestClass]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BizHawk.Common.StringExtensions;

namespace BizHawk.Tests.Common.StringExtensions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BizHawk.Common.StringExtensions;

namespace BizHawk.Tests.Common.StringExtensions
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests/Common/checksums/CRC32Tests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using BizHawk.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Common.checksums
{
[DoNotParallelize] // I only noticed problems w/ SHA1, but better safe than sorry --yoshi
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests/Common/checksums/SHA1Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
using System.Text;
using BizHawk.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Common.checksums
{
[DoNotParallelize]
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests/EmbeddedData.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.IO;
using System.Reflection;

using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

namespace BizHawk.Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
using System.Linq;
using BizHawk.Emulation.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests.Emulation.Common
{
[TestClass]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

using BizHawk.Common.StringExtensions;
using BizHawk.Emulation.Common;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BizHawk.Client.Common;

namespace BizHawk.Tests.Client.Common.Movie
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using BizHawk.Common;
using BizHawk.Common.PathExtensions;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using PE = BizHawk.Common.PathExtensions.PathExtensions;

namespace BizHawk.Tests.Common.PathExtensions
Expand Down
2 changes: 0 additions & 2 deletions src/BizHawk.Tests/PlatformTests/PlatformTestUtils.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using BizHawk.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizHawk.Tests
{
public static class PlatformTestUtils
Expand Down
1 change: 1 addition & 0 deletions src/TestProjects.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
<ItemGroup>
<PackageReference Include="MSTest" PrivateAssets="all" />
<PackageReference Include="JunitXml.TestLogger" PrivateAssets="all" />
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
</ItemGroup>
</Project>

0 comments on commit 3fb0afa

Please sign in to comment.