From 498e52ae9918f28587555fb1b50911ffff257fa2 Mon Sep 17 00:00:00 2001 From: Eugene Sadovoi Date: Sat, 7 Oct 2017 20:24:46 -0400 Subject: [PATCH] Refactoring --- tests/TestSupport/AssertExtensions.cs | 7 ------- tests/TestSupport/CollectionAssertExtensions.cs | 10 ---------- tests/TestSupport/EnumerableAssertionExtensions.cs | 6 ------ tests/TestSupport/ObjectWithTwoProperties.cs | 6 ------ 4 files changed, 29 deletions(-) diff --git a/tests/TestSupport/AssertExtensions.cs b/tests/TestSupport/AssertExtensions.cs index 3602739..8dc3368 100644 --- a/tests/TestSupport/AssertExtensions.cs +++ b/tests/TestSupport/AssertExtensions.cs @@ -2,14 +2,7 @@ using System; using System.Reflection; - -#if NETFX_CORE -using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; -#elif __IOS__ -using NUnit.Framework; -#else using Microsoft.VisualStudio.TestTools.UnitTesting; -#endif namespace Microsoft.Practices.Unity.TestSupport { diff --git a/tests/TestSupport/CollectionAssertExtensions.cs b/tests/TestSupport/CollectionAssertExtensions.cs index 4a9dd42..e813ec2 100644 --- a/tests/TestSupport/CollectionAssertExtensions.cs +++ b/tests/TestSupport/CollectionAssertExtensions.cs @@ -1,19 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. -using System; using System.Collections; using System.Globalization; using System.Linq; -using System.Text; -using System.Threading.Tasks; -#if NETFX_CORE -using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; -#elif __IOS__ -using NUnit.Framework; -using AssertFailedException = NUnit.Framework.AssertionException; -#else using Microsoft.VisualStudio.TestTools.UnitTesting; -#endif namespace Microsoft.Practices.Unity.TestSupport { diff --git a/tests/TestSupport/EnumerableAssertionExtensions.cs b/tests/TestSupport/EnumerableAssertionExtensions.cs index 7ad8915..da14ec5 100644 --- a/tests/TestSupport/EnumerableAssertionExtensions.cs +++ b/tests/TestSupport/EnumerableAssertionExtensions.cs @@ -3,13 +3,7 @@ using System; using System.Collections.Generic; using System.Linq; -#if NETFX_CORE -using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; -#elif __IOS__ -using NUnit.Framework; -#else using Microsoft.VisualStudio.TestTools.UnitTesting; -#endif namespace Microsoft.Practices.Unity.TestSupport { diff --git a/tests/TestSupport/ObjectWithTwoProperties.cs b/tests/TestSupport/ObjectWithTwoProperties.cs index cc3b461..cf39fe5 100644 --- a/tests/TestSupport/ObjectWithTwoProperties.cs +++ b/tests/TestSupport/ObjectWithTwoProperties.cs @@ -1,12 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. -#if NETFX_CORE -using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; -#elif __IOS__ -using NUnit.Framework; -#else using Microsoft.VisualStudio.TestTools.UnitTesting; -#endif namespace Microsoft.Practices.Unity.TestSupport {