From 9b7733572691220b606df72e307c79c31777cfe5 Mon Sep 17 00:00:00 2001 From: Cyrille DUPUYDAUBY Date: Fri, 29 Sep 2023 17:48:30 +0200 Subject: [PATCH] chore: remove usings from MutantControl --- .../InjectedHelpers/MutantControl.cs | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Stryker.Core/Stryker.Core/InjectedHelpers/MutantControl.cs b/src/Stryker.Core/Stryker.Core/InjectedHelpers/MutantControl.cs index 4b445eb668..955c6f86fa 100644 --- a/src/Stryker.Core/Stryker.Core/InjectedHelpers/MutantControl.cs +++ b/src/Stryker.Core/Stryker.Core/InjectedHelpers/MutantControl.cs @@ -1,15 +1,11 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace Stryker { internal static class MutantControl { - private static List _coveredMutants; - private static List _coveredStaticdMutants; + private static System.Collections.Generic.List _coveredMutants; + private static System.Collections.Generic.List _coveredStaticdMutants; private static string envName; - private static Object _coverageLock = new Object(); + private static System.Object _coverageLock = new System.Object(); // this attribute will be set by the Stryker Data Collector before each test public static bool CaptureCoverage; @@ -28,21 +24,21 @@ public static void InitCoverage() public static void ResetCoverage() { - _coveredMutants = new List(); - _coveredStaticdMutants = new List(); + _coveredMutants = new System.Collections.Generic.List(); + _coveredStaticdMutants = new System.Collections.Generic.List(); } - public static IList[] GetCoverageData() + public static System.Collections.Generic.IList[] GetCoverageData() { - IList[] result = new IList[]{_coveredMutants, _coveredStaticdMutants}; + System.Collections.Generic.IList[] result = new System.Collections.Generic.IList[]{_coveredMutants, _coveredStaticdMutants}; ResetCoverage(); return result; } - private static void CurrentDomain_ProcessExit(object sender, EventArgs e) + private static void CurrentDomain_ProcessExit(object sender, System.EventArgs e) { - GC.KeepAlive(_coveredMutants); - GC.KeepAlive(_coveredStaticdMutants); + System.GC.KeepAlive(_coveredMutants); + System.GC.KeepAlive(_coveredStaticdMutants); } // check with: Stryker.MutantControl.IsActive(ID) @@ -55,7 +51,7 @@ public static bool IsActive(int id) } if (ActiveMutant == ActiveMutantNotInitValue) { - string environmentVariable = Environment.GetEnvironmentVariable("ActiveMutation"); + string environmentVariable = System.Environment.GetEnvironmentVariable("ActiveMutation"); if (string.IsNullOrEmpty(environmentVariable)) { ActiveMutant = -1;