Skip to content

Commit f7abd0c

Browse files
committed
新框架不想再支持 IntPtr 了
1 parent 92120a1 commit f7abd0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/dotnetCampus.Ipc.Tests/CompilerServices/GeneratedProxies/IpcObjectTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public async Task IpcPropertyTests4()
7373
Assert.AreEqual(true, result2);
7474
}
7575

76-
[TestMethod("IPC 代理生成:没有原生序列化的属性(以指针属性为例)")]
76+
#if !NET8_0_OR_GREATER
77+
[TestMethod("IPC 代理生成:没有原生序列化的属性(以指针属性为例,仅支持 Newtonsoft.Json)")]
7778
public async Task IpcPropertyTests5()
7879
{
7980
// 准备。
@@ -85,6 +86,7 @@ public async Task IpcPropertyTests5()
8586
// 植物。
8687
Assert.AreEqual(new IntPtr(1), result);
8788
}
89+
#endif
8890

8991
[TestMethod("IPC 代理生成:要等待完成的 void 方法")]
9092
public async Task IpcMethodsTests1()

0 commit comments

Comments
 (0)