diff --git a/tests/xharness/Harness.cs b/tests/xharness/Harness.cs index 71cb4329d6..df0fa40f91 100644 --- a/tests/xharness/Harness.cs +++ b/tests/xharness/Harness.cs @@ -431,10 +431,10 @@ namespace xharness { int rv = 0; - var unified_targets = new List (); - var hardcoded_unified_targets = new List (); + var unified_targets = new List (); + var hardcoded_unified_targets = new List (); - Action configureTarget = (MacUnifiedTarget target, string file, bool isNUnitProject) => { + Action configureTarget = (MacTarget target, string file, bool isNUnitProject) => { target.TemplateProjectPath = file; target.Harness = this; target.IsNUnitProject = isNUnitProject; @@ -464,14 +464,14 @@ namespace xharness } if (proj.GenerateFull) { - var full = new MacUnifiedTarget (false); + var full = new MacTarget (false); full.MonoNativeInfo = proj.MonoNativeInfo; configureTarget (full, file, proj.IsNUnitProject); unified_targets.Add (full); } if (proj.GenerateSystem) { - var system = new MacUnifiedTarget (false); + var system = new MacTarget (false); system.System = true; configureTarget (system, file, proj.IsNUnitProject); unified_targets.Add (system); @@ -480,7 +480,7 @@ namespace xharness foreach (var proj in MacTestProjects.Where (v => !v.GenerateVariations)) { var file = proj.Path; - var unified = new MacUnifiedTarget (proj.GenerateModern, shouldSkipProjectGeneration: true); + var unified = new MacTarget (proj.GenerateModern, shouldSkipProjectGeneration: true); unified.BCLInfo = proj.BCLInfo; configureTarget (unified, file, proj.IsNUnitProject); hardcoded_unified_targets.Add (unified); diff --git a/tests/xharness/MacUnifiedTarget.cs b/tests/xharness/MacTarget.cs similarity index 96% rename from tests/xharness/MacUnifiedTarget.cs rename to tests/xharness/MacTarget.cs index ff11b1fb36..25344b8d82 100644 --- a/tests/xharness/MacUnifiedTarget.cs +++ b/tests/xharness/MacTarget.cs @@ -7,7 +7,7 @@ using Xamarin; namespace xharness { - public class MacUnifiedTarget : Target + public class MacTarget : Target { public bool Mobile { get; private set; } public bool System { get; set; } @@ -19,7 +19,7 @@ namespace xharness bool SkipProjectGeneration; bool SkipSuffix; - public MacUnifiedTarget (bool mobile, bool shouldSkipProjectGeneration = false, bool skipSuffix = false) : base () + public MacTarget (bool mobile, bool shouldSkipProjectGeneration = false, bool skipSuffix = false) : base () { Mobile = mobile; SkipProjectGeneration = shouldSkipProjectGeneration; diff --git a/tests/xharness/MakefileGenerator.cs b/tests/xharness/MakefileGenerator.cs index 93321e7c48..eb86f2c775 100644 --- a/tests/xharness/MakefileGenerator.cs +++ b/tests/xharness/MakefileGenerator.cs @@ -26,7 +26,7 @@ namespace xharness enum MacTargetNameType { Build, Clean, Exec, Run } - static string MakeMacUnifiedTargetName (MacUnifiedTarget target, MacTargetNameType type) + static string MakeMacUnifiedTargetName (MacTarget target, MacTargetNameType type) { var make_escaped_suffix = "-" + target.Platform.Replace (" ", "\\ "); var make_escaped_name = target.SimplifiedName.Replace (" ", "\\ "); @@ -57,7 +57,7 @@ namespace xharness return path; } - public static void CreateMacMakefile (Harness harness, IEnumerable targets) + public static void CreateMacMakefile (Harness harness, IEnumerable targets) { var makefile = Path.Combine (harness.RootDirectory, "Makefile-mac.inc"); using (var writer = new StreamWriter (makefile, false, new UTF8Encoding (false))) { @@ -71,7 +71,7 @@ namespace xharness writer.WriteLine ("\t$(Q) $(SYSTEM_MONO) /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/nuget/NuGet.exe restore tests-mac.sln"); writer.WriteLine ("\t$(Q) touch $@"); - var allTargets = new List (); + var allTargets = new List (); allTargets.AddRange (targets); List allTargetNames = new List (allTargets.Count); @@ -146,7 +146,7 @@ namespace xharness writer.WriteLine ("# Container targets that run multiple test projects"); writer.WriteLine (); - IEnumerable groupableTargets = allTargets; + IEnumerable groupableTargets = allTargets; var grouped = groupableTargets.GroupBy ((target) => target.SimplifiedName); foreach (MacTargetNameType action in Enum.GetValues (typeof (MacTargetNameType))) { diff --git a/tests/xharness/xharness.csproj b/tests/xharness/xharness.csproj index 0b2d4162be..a174db0de3 100644 --- a/tests/xharness/xharness.csproj +++ b/tests/xharness/xharness.csproj @@ -92,7 +92,7 @@ - +