diff options
author | csharptest <roger@csharptest.net> | 2012-10-12 18:22:48 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2012-10-12 18:22:48 -0500 |
commit | ad73b4250d906757b290a8a53d4544a623a7e0d8 (patch) | |
tree | c423bc677dafa155103ea5bcf01a16f8e0ca4de4 /src/ProtocolBuffers.Test/TestUtil.cs | |
parent | 3cf3315370c3aff09353bb0bf3808d67c9e92eda (diff) | |
download | protobuf-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.cs | 7 |
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>
|