aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers.Test/TestUtil.cs
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2012-10-12 18:22:48 -0500
committerrogerk <devnull@localhost>2012-10-12 18:22:48 -0500
commitad73b4250d906757b290a8a53d4544a623a7e0d8 (patch)
treec423bc677dafa155103ea5bcf01a16f8e0ca4de4 /src/ProtocolBuffers.Test/TestUtil.cs
parent3cf3315370c3aff09353bb0bf3808d67c9e92eda (diff)
downloadprotobuf-ad73b4250d906757b290a8a53d4544a623a7e0d8.tar.gz
protobuf-ad73b4250d906757b290a8a53d4544a623a7e0d8.tar.bz2
protobuf-ad73b4250d906757b290a8a53d4544a623a7e0d8.zip
Fixing build for SILVERLIGHT and COMPACT_FRAMEWORK before adding more build
variations (WP). Changes are primarily superficial since they are to support the Serialization assembly and unit tests compiling in the CF which has not been done before.
Diffstat (limited to 'src/ProtocolBuffers.Test/TestUtil.cs')
-rw-r--r--src/ProtocolBuffers.Test/TestUtil.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ProtocolBuffers.Test/TestUtil.cs b/src/ProtocolBuffers.Test/TestUtil.cs
index dd1c981d..12d73d16 100644
--- a/src/ProtocolBuffers.Test/TestUtil.cs
+++ b/src/ProtocolBuffers.Test/TestUtil.cs
@@ -49,12 +49,11 @@ using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
-
namespace Google.ProtocolBuffers
{
internal static class TestUtil
{
-#if !SILVERLIGHT
+#if !SILVERLIGHT && !COMPACT_FRAMEWORK
private static string testDataDirectory;
internal static string TestDataDirectory
@@ -1769,6 +1768,9 @@ namespace Google.ProtocolBuffers
public static void TestInMultipleCultures(CultureAction test)
{
+#if COMPACT_FRAMEWORK
+ test();
+#else
CultureInfo originalCulture = Thread.CurrentThread.CurrentCulture;
foreach (string culture in TestCultures)
{
@@ -1782,6 +1784,7 @@ namespace Google.ProtocolBuffers
Thread.CurrentThread.CurrentCulture = originalCulture;
}
}
+#endif
}
/// <summary>