test: 调整测试项目配置

This commit is contained in:
Fu Diwei 2021-08-05 17:57:13 +08:00
parent 10a099e464
commit 677c04898d
8 changed files with 13 additions and 17 deletions

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
@ -7,8 +7,7 @@
<ItemGroup>
<None Remove=".gitignore" />
<Content Include="appsettings.json" />
<Content Include="appsettings.local.json">
<Content Include="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ModelSamples/**/*.json" />

View File

@ -8,10 +8,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Ads.UnitTests
{
static TestConfigs()
{
// NOTICE: 请在项目根目录下建立 appsettings.local.json按照 appsettings.json 的格式填入测试参数。
// NOTICE: 请在项目根目录下按照 appsettings.json 的格式填入测试参数。
// WARN: 敏感信息请不要提交到 git
using var stream = File.OpenRead("appsettings.local.json");
using var stream = File.OpenRead("appsettings.json");
using var json = JsonDocument.Parse(stream);
var config = json.RootElement.GetProperty("WechatConfig");

View File

@ -7,8 +7,7 @@
<ItemGroup>
<None Remove=".gitignore" />
<Content Include="appsettings.json" />
<Content Include="appsettings.local.json">
<Content Include="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ModelSamples/**/*.json" />

View File

@ -8,10 +8,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.UnitTests
{
static TestConfigs()
{
// NOTICE: 请在项目根目录下建立 appsettings.local.json按照 appsettings.json 的格式填入测试参数。
// NOTICE: 请在项目根目录下按照 appsettings.json 的格式填入测试参数。
// WARN: 敏感信息请不要提交到 git
using var stream = File.OpenRead("appsettings.local.json");
using var stream = File.OpenRead("appsettings.json");
using var json = JsonDocument.Parse(stream);
var config = json.RootElement.GetProperty("WechatConfig");

View File

@ -7,8 +7,7 @@
<ItemGroup>
<None Remove=".gitignore" />
<Content Include="appsettings.json" />
<Content Include="appsettings.local.json">
<Content Include="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ModelSamples/**/*.json" />

View File

@ -8,10 +8,10 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
{
static TestConfigs()
{
// NOTICE: 请在项目根目录下建立 appsettings.local.json按照 appsettings.json 的格式填入测试参数。
// NOTICE: 请在项目根目录下按照 appsettings.json 的格式填入测试参数。
// WARN: 敏感信息请不要提交到 git
using var stream = File.OpenRead("appsettings.local.json");
using var stream = File.OpenRead("appsettings.json");
using var json = JsonDocument.Parse(stream);
var config = json.RootElement.GetProperty("WechatConfig");

View File

@ -7,8 +7,7 @@
<ItemGroup>
<None Remove=".gitignore" />
<Content Include="appsettings.json" />
<Content Include="appsettings.local.json">
<Content Include="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ModelSamples/**/*.json" />

View File

@ -8,10 +8,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
{
static TestConfigs()
{
// NOTICE: 请在项目根目录下建立 appsettings.local.json按照 appsettings.json 的格式填入测试参数。
// NOTICE: 请在项目根目录下按照 appsettings.json 的格式填入测试参数。
// WARN: 敏感信息请不要提交到 git
using var stream = File.OpenRead("appsettings.local.json");
using var stream = File.OpenRead("appsettings.json");
using var json = JsonDocument.Parse(stream);
var config = json.RootElement.GetProperty("WechatConfig");