blob: 69c3e32aa4366593ab415a1a846d97556c2e6242 (
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
|
using System;
using System.Globalization;
using System.Threading;
using NUnit.Framework;
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
}
[TearDown]
public virtual void TearDown ()
{
}
}
}
|