DotNetCore.SKIT.FlurlHttpCl.../test/SKIT.FlurlHttpClient.Wechat.OpenAI.UnitTests/TestCase_CodeReview.cs

29 lines
994 B
C#
Raw Normal View History

using SKIT.FlurlHttpClient.Tools.CodeAnalyzer;
2022-02-21 18:27:07 +08:00
using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.OpenAI.UnitTests
{
public class TestCase_CodeReview
{
[Fact(DisplayName = "测试用例:代码质量分析")]
public void TestCodeAnalyzer()
{
2022-03-08 22:24:19 +08:00
Assert.Null(Record.Exception(() =>
{
2022-05-06 20:29:27 +08:00
CodeAnalyzerOptions options = new CodeAnalyzerOptions()
2022-03-08 22:24:19 +08:00
{
AssemblyName = "SKIT.FlurlHttpClient.Wechat.OpenAI",
WorkDirectoryForSourceCode = TestConfigs.WorkDirectoryForSdk,
WorkDirectoryForTestSample = TestConfigs.WorkDirectoryForTest,
2022-02-21 18:27:07 +08:00
AllowNotFoundEventTypes = true,
AllowNotFoundEventSamples = true
};
CodeAnalyzer analyzer = new CodeAnalyzer(options);
analyzer.Start();
analyzer.Assert();
analyzer.Flush();
}));
}
}
}