From 4643bab03d187a381e3a7c2f6d206dda215afae6 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Wed, 23 Dec 2015 12:25:53 -0600 Subject: [PATCH] (maint) formatting --- .../NUnitSetup.cs | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/chocolatey.tests.integration/NUnitSetup.cs b/src/chocolatey.tests.integration/NUnitSetup.cs index dae5f11d86..d2e187acc4 100644 --- a/src/chocolatey.tests.integration/NUnitSetup.cs +++ b/src/chocolatey.tests.integration/NUnitSetup.cs @@ -1,12 +1,12 @@ // Copyright © 2011 - Present RealDimensions Software, LLC -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. -// +// // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -62,8 +62,8 @@ public override void BeforeEverything() } /// - /// Most of the application parameters are already set by runtime and are readonly values. - /// They need to be updated, so we can do that with reflection. + /// Most of the application parameters are already set by runtime and are readonly values. + /// They need to be updated, so we can do that with reflection. /// private static void fix_application_parameter_variables(Container container) { @@ -71,31 +71,31 @@ private static void fix_application_parameter_variables(Container container) var applicationLocation = fileSystem.get_directory_name(fileSystem.get_current_assembly_path()); - var field = typeof (ApplicationParameters).GetField("InstallLocation"); + var field = typeof(ApplicationParameters).GetField("InstallLocation"); field.SetValue(null, applicationLocation); - field = typeof (ApplicationParameters).GetField("LicenseFileLocation"); + field = typeof(ApplicationParameters).GetField("LicenseFileLocation"); field.SetValue(null, fileSystem.combine_paths(ApplicationParameters.InstallLocation, "license", "chocolatey.license.xml")); - field = typeof (ApplicationParameters).GetField("LoggingLocation"); + field = typeof(ApplicationParameters).GetField("LoggingLocation"); field.SetValue(null, fileSystem.combine_paths(ApplicationParameters.InstallLocation, "logs")); - field = typeof (ApplicationParameters).GetField("GlobalConfigFileLocation"); + field = typeof(ApplicationParameters).GetField("GlobalConfigFileLocation"); field.SetValue(null, fileSystem.combine_paths(ApplicationParameters.InstallLocation, "config", "chocolatey.config")); - field = typeof (ApplicationParameters).GetField("PackagesLocation"); + field = typeof(ApplicationParameters).GetField("PackagesLocation"); field.SetValue(null, fileSystem.combine_paths(ApplicationParameters.InstallLocation, "lib")); - field = typeof (ApplicationParameters).GetField("PackageFailuresLocation"); + field = typeof(ApplicationParameters).GetField("PackageFailuresLocation"); field.SetValue(null, fileSystem.combine_paths(ApplicationParameters.InstallLocation, "lib-bad")); field = typeof(ApplicationParameters).GetField("PackageBackupLocation"); field.SetValue(null, fileSystem.combine_paths(ApplicationParameters.InstallLocation, "lib-bkp")); - field = typeof (ApplicationParameters).GetField("ShimsLocation"); + field = typeof(ApplicationParameters).GetField("ShimsLocation"); field.SetValue(null, fileSystem.combine_paths(ApplicationParameters.InstallLocation, "bin")); - field = typeof (ApplicationParameters).GetField("ChocolateyPackageInfoStoreLocation"); + field = typeof(ApplicationParameters).GetField("ChocolateyPackageInfoStoreLocation"); field.SetValue(null, fileSystem.combine_paths(ApplicationParameters.InstallLocation, ".chocolatey")); // we need to speed up specs a bit, so only try filesystem locking operations twice @@ -108,7 +108,7 @@ private static void fix_application_parameter_variables(Container container) private void unpack_self(Container container, ChocolateyConfiguration config) { - var unpackCommand = container.GetInstance(); + var unpackCommand = container.GetInstance(); unpackCommand.run(config); } @@ -125,8 +125,8 @@ private void build_packages(Container container, ChocolateyConfiguration config) } var files = fileSystem.get_files(contextDir, "*.nuspec", SearchOption.AllDirectories); - - var command = container.GetInstance(); + + var command = container.GetInstance(); foreach (var file in files.or_empty_list_if_null()) { config.Input = file;