aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/Google.Protobuf.Test
diff options
context:
space:
mode:
authorGravatar detlevschwabe <detlev.schwabe@gmail.com>2016-06-27 22:31:42 -0700
committerGravatar Jon Skeet <skeet@pobox.com>2016-06-28 06:31:42 +0100
commitdc0aeaa9030bdac264b44d56d07b6839a1ae94e9 (patch)
tree4c2fa16988a67942b15307b8da9fd0e1f3994a99 /csharp/src/Google.Protobuf.Test
parent7b5648ca98b6bde2b18db109bdf020944e0b7baa (diff)
Adding conditional compiler symbol to support .NET 3.5 (#1713)
* Adding condition compiler symbol to support .NET 3.5
Diffstat (limited to 'csharp/src/Google.Protobuf.Test')
-rw-r--r--csharp/src/Google.Protobuf.Test/Compatibility/TypeExtensionsTest.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf.Test/Compatibility/TypeExtensionsTest.cs b/csharp/src/Google.Protobuf.Test/Compatibility/TypeExtensionsTest.cs
index f0c8d3bc..359c72c8 100644
--- a/csharp/src/Google.Protobuf.Test/Compatibility/TypeExtensionsTest.cs
+++ b/csharp/src/Google.Protobuf.Test/Compatibility/TypeExtensionsTest.cs
@@ -67,7 +67,7 @@ namespace Google.Protobuf.Compatibility
{
Assert.AreEqual(expected, TypeExtensions.IsValueType(type));
}
-
+#if !DOTNET35
[Test]
[TestCase(typeof(object), typeof(string), true)]
[TestCase(typeof(object), typeof(int), true)]
@@ -129,5 +129,6 @@ namespace Google.Protobuf.Compatibility
{
Assert.Throws<AmbiguousMatchException>(() => TypeExtensions.GetMethod(type, name));
}
+#endif
}
}