Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/aspnet/MessagePack-CSharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorneuecc <ils@neue.cc>2021-11-04 12:04:03 +0300
committerneuecc <ils@neue.cc>2021-11-04 12:04:03 +0300
commitc38823538505a4854abf3f94d894a61dcf07c98f (patch)
tree6df55e7b575573b0391c0023f4bde5221c303f06 /src
parent2119ae61806d3de66f8f70872929abcd0da070a6 (diff)
some dynamic test disable in Unity
Diffstat (limited to 'src')
-rw-r--r--src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DataContractTest.cs4
-rw-r--r--src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectFallbackTest.cs2
-rw-r--r--src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ExpandoObjectTests.cs4
3 files changed, 9 insertions, 1 deletions
diff --git a/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DataContractTest.cs b/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DataContractTest.cs
index c14649e3..d4defb9e 100644
--- a/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DataContractTest.cs
+++ b/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DataContractTest.cs
@@ -191,6 +191,8 @@ namespace MessagePack.Tests
public bool Equals(Detail other) => other != null && this.B1 == other.B1 && this.B2 == other.B2;
}
+#if !UNITY_2018_3_OR_NEWER
+
[Fact]
public void DataContractSerializerCompatibility()
{
@@ -219,6 +221,8 @@ namespace MessagePack.Tests
Assert.Equal(dcsValue, mpValue);
}
+#endif
+
private static T DataContractSerializerRoundTrip<T>(T value)
{
var ms = new MemoryStream();
diff --git a/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectFallbackTest.cs b/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectFallbackTest.cs
index 4ac2331d..a16b9f0b 100644
--- a/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectFallbackTest.cs
+++ b/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectFallbackTest.cs
@@ -1,7 +1,7 @@
// Copyright (c) All contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-#if !ENABLE_IL2CPP
+#if !UNITY_2018_3_OR_NEWER
using System;
using System.Collections.Generic;
diff --git a/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ExpandoObjectTests.cs b/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ExpandoObjectTests.cs
index 45b17ede..99f3b808 100644
--- a/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ExpandoObjectTests.cs
+++ b/src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ExpandoObjectTests.cs
@@ -1,6 +1,8 @@
// Copyright (c) All contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+#if !UNITY_2018_3_OR_NEWER
+
using System.Dynamic;
using System.Runtime.Serialization;
using MessagePack.Resolvers;
@@ -115,3 +117,5 @@ namespace MessagePack.Tests
}
}
}
+
+#endif