From 77515ee2e9dab21ac3a65d56d6db348a96122e7f Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Mon, 7 Jun 2021 00:30:45 +0800 Subject: [PATCH] =?UTF-8?q?test(work):=20=E6=94=AF=E6=8C=81=E7=9B=B8?= =?UTF-8?q?=E5=90=8C=E6=A8=A1=E5=9E=8B=E7=B1=BB=E5=9E=8B=E3=80=81=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E7=A4=BA=E4=BE=8B=E6=96=87=E4=BB=B6=E7=9A=84=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SKIT.FlurlHttpClient.Wechat.TestTools/TestAssertUtil.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/SKIT.FlurlHttpClient.Wechat.TestTools/TestAssertUtil.cs b/test/SKIT.FlurlHttpClient.Wechat.TestTools/TestAssertUtil.cs index a0b3e3b7..679c4ba9 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.TestTools/TestAssertUtil.cs +++ b/test/SKIT.FlurlHttpClient.Wechat.TestTools/TestAssertUtil.cs @@ -142,7 +142,7 @@ namespace SKIT.FlurlHttpClient.Wechat foreach (string file in lstFile) { string json = File.ReadAllText(file); - string name = Path.GetFileNameWithoutExtension(file); + string name = Path.GetFileNameWithoutExtension(file).Split('.')[0]; Type type = assembly.GetType($"{assembly.GetName().Name}.Models.{name}"); if (type == null) @@ -189,7 +189,7 @@ namespace SKIT.FlurlHttpClient.Wechat foreach (string file in lstJsonFile) { string json = File.ReadAllText(file); - string name = Path.GetFileNameWithoutExtension(file); + string name = Path.GetFileNameWithoutExtension(file).Split('.')[0]; Type type = assembly.GetType($"{assembly.GetName().Name}.Events.{name}"); if (type == null) @@ -207,7 +207,7 @@ namespace SKIT.FlurlHttpClient.Wechat foreach (string file in lstXmlFile) { string xml = File.ReadAllText(file); - string name = Path.GetFileNameWithoutExtension(file); + string name = Path.GetFileNameWithoutExtension(file).Split('.')[0]; Type type = assembly.GetType($"{assembly.GetName().Name}.Events.{name}"); if (type == null)