blob: d3a57ea3d97f4a47713890bac7ca5b888b6694b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
using System;
using System.Globalization;
using System.Threading;
using NUnit.Framework;
using NUnit.Framework.Constraints;
namespace Xamarin.Forms.Core.UnitTests
{
public class BaseTestFixture
{
[SetUp]
public virtual void Setup ()
{
#if !WINDOWS_PHONE
var culture = Environment.GetEnvironmentVariable ("UNIT_TEST_CULTURE");
if (!string.IsNullOrEmpty (culture)) {
var thead = Thread.CurrentThread;
thead.CurrentCulture = new CultureInfo (culture);
}
#endif
Console.WriteLine ("Current culture: {0}", Thread.CurrentThread.CurrentCulture.Name);
}
[TearDown]
public virtual void TearDown ()
{
}
}
}
|