mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 10:38:10 +08:00
chore(openai): 调整目录结构
This commit is contained in:
@@ -8,13 +8,44 @@ namespace SKIT.FlurlHttpClient.Wechat.OpenAI.UnitTests
|
||||
[Fact(DisplayName = "测试用例:代码质量分析")]
|
||||
public void TestCodeAnalyzer()
|
||||
{
|
||||
Assert.Null(Record.Exception(() =>
|
||||
{
|
||||
CodeAnalyzerOptions options = new CodeAnalyzerOptions()
|
||||
{
|
||||
AssemblyName = "SKIT.FlurlHttpClient.Wechat.OpenAI",
|
||||
WorkDirectoryForSourceCode = TestConfigs.WorkDirectoryForSdk,
|
||||
WorkSubDirectoryForApiModels = "Models/Platform",
|
||||
WorkSubDirectoryForApiEvents = "Events/Platform",
|
||||
WorkSubDirectoryForApiMethods = "Extensions/Platform",
|
||||
WorkDirectoryForTestSample = TestConfigs.WorkDirectoryForTest,
|
||||
WorkSubDirectoryForApiModelSamples = "ModelSamples/Platform",
|
||||
WorkSubDirectoryForApiEventSamples = "EventSamples/Platform",
|
||||
TargetSdkApiModelNamespaceUnderAssemblyIdentifier = "Models.Platform",
|
||||
TargetSdkApiEventNamespaceUnderAssemblyIdentifier = "Events.Platform",
|
||||
AllowNotFoundEventTypes = true,
|
||||
AllowNotFoundEventSamples = true
|
||||
};
|
||||
CodeAnalyzer analyzer = new CodeAnalyzer(options);
|
||||
analyzer.Start();
|
||||
analyzer.Assert();
|
||||
analyzer.Flush();
|
||||
}));
|
||||
|
||||
|
||||
Assert.Null(Record.Exception(() =>
|
||||
{
|
||||
CodeAnalyzerOptions options = new CodeAnalyzerOptions()
|
||||
{
|
||||
AssemblyName = "SKIT.FlurlHttpClient.Wechat.OpenAI",
|
||||
WorkDirectoryForSourceCode = TestConfigs.WorkDirectoryForSdk,
|
||||
WorkSubDirectoryForApiModels = "Models/ThirdParty",
|
||||
WorkSubDirectoryForApiEvents = "Events/ThirdParty",
|
||||
WorkSubDirectoryForApiMethods = "Extensions/ThirdParty",
|
||||
WorkDirectoryForTestSample = TestConfigs.WorkDirectoryForTest,
|
||||
WorkSubDirectoryForApiModelSamples = "ModelSamples/ThirdParty",
|
||||
WorkSubDirectoryForApiEventSamples = "EventSamples/ThirdParty",
|
||||
TargetSdkApiModelNamespaceUnderAssemblyIdentifier = "Models.ThirdParty",
|
||||
TargetSdkApiEventNamespaceUnderAssemblyIdentifier = "Events.ThirdParty",
|
||||
AllowNotFoundEventTypes = true,
|
||||
AllowNotFoundEventSamples = true
|
||||
};
|
||||
|
Reference in New Issue
Block a user