Skip to content

Commit

Permalink
Imbues the thread with "en-US" culture. A temporary work-in-progress …
Browse files Browse the repository at this point in the history
…change for now.
  • Loading branch information
veikkoeeva committed May 10, 2018
1 parent e81675d commit f1b02ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Microsoft.ML.TestFramework/BaseTestClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// See the LICENSE file in the project root for more information.

using Microsoft.ML.Runtime.Internal.Internallearn.Test;
using System.Globalization;
using System.IO;
using System.Threading;
using Xunit.Abstractions;

namespace Microsoft.ML.TestFramework
Expand All @@ -18,6 +20,8 @@ public class BaseTestClass

public BaseTestClass(ITestOutputHelper output)
{
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

var currentAssemblyLocation = new FileInfo(typeof(BaseTestClass).Assembly.Location);
_rootDir = currentAssemblyLocation.Directory.Parent.Parent.Parent.Parent.FullName;
_outDir = Path.Combine(currentAssemblyLocation.Directory.FullName, "TestOutput");
Expand Down

0 comments on commit f1b02ca

Please sign in to comment.