From 8206c70994ec600f96dc38e622e5b569c878abfe Mon Sep 17 00:00:00 2001 From: Raymond Martin Date: Thu, 20 Apr 2017 19:05:32 -0700 Subject: [PATCH] Removing hardcoded constant (#326) --- .../ObjectExplorer/NodeTests.cs | 4 ++-- .../ServiceHost/SrTests.cs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/Microsoft.SqlTools.ServiceLayer.UnitTests/ObjectExplorer/NodeTests.cs b/test/Microsoft.SqlTools.ServiceLayer.UnitTests/ObjectExplorer/NodeTests.cs index ce7fa73d..376cf1bb 100644 --- a/test/Microsoft.SqlTools.ServiceLayer.UnitTests/ObjectExplorer/NodeTests.cs +++ b/test/Microsoft.SqlTools.ServiceLayer.UnitTests/ObjectExplorer/NodeTests.cs @@ -9,14 +9,14 @@ using System.Data.SqlClient; using System.Globalization; using Microsoft.SqlServer.Management.Common; using Microsoft.SqlServer.Management.Smo; -using Microsoft.SqlTools.Extensibility; +using Microsoft.SqlTools.Extensibility; using Microsoft.SqlTools.ServiceLayer.Connection; using Microsoft.SqlTools.ServiceLayer.Connection.Contracts; using Microsoft.SqlTools.ServiceLayer.ObjectExplorer; using Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Contracts; using Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes; using Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel; -using Microsoft.SqlTools.ServiceLayer.UnitTests.Utility; +using Microsoft.SqlTools.ServiceLayer.UnitTests.Utility; using Moq; using Xunit; diff --git a/test/Microsoft.SqlTools.ServiceLayer.UnitTests/ServiceHost/SrTests.cs b/test/Microsoft.SqlTools.ServiceLayer.UnitTests/ServiceHost/SrTests.cs index 6c9d808e..9400ee43 100644 --- a/test/Microsoft.SqlTools.ServiceLayer.UnitTests/ServiceHost/SrTests.cs +++ b/test/Microsoft.SqlTools.ServiceLayer.UnitTests/ServiceHost/SrTests.cs @@ -234,9 +234,7 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.ServiceHost Assert.Equal(TestLocalizationConstant, "prueba"); // Reset the locale - locale = "en"; - args = new string[] { "--locale " + locale }; - options = new CommandOptions(args); + SrStringsTestWithEnLocalization(); } [Fact]