mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-11 10:16:20 +08:00
fix(openai): 修复无法 XML 序列化派生类的问题
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Xunit;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.OpenAI.UnitTests
|
||||
{
|
||||
public class TestCase_XmlUtilityTests
|
||||
{
|
||||
[Fact(DisplayName = "测试用例:XML 序列化派生类")]
|
||||
public void TestXmlSerializeSubClass()
|
||||
{
|
||||
Assert.Null(Record.Exception(() =>
|
||||
{
|
||||
object obj = new Models.SignRequest() { UserId = "TEST" };
|
||||
Utilities.XmlUtility.Serialize(obj);
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user