Added JsonTester

Added LicenserTester
Added SqliteCacheTester
Updated EnvTester
Updated LoggerTester
This commit is contained in:
2025-02-27 20:24:38 +01:00
parent d2ac9710f0
commit b85fa5a6b9
15 changed files with 232 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EonaCat.Json" Version="1.1.4" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
</ItemGroup>
</Project>

22
JsonTester/JsonTester.sln Normal file
View File

@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.12.35728.132 d17.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JsonTester", "JsonTester.csproj", "{4893C0BA-F847-45BF-9035-0E01ED028FF7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4893C0BA-F847-45BF-9035-0E01ED028FF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4893C0BA-F847-45BF-9035-0E01ED028FF7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4893C0BA-F847-45BF-9035-0E01ED028FF7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4893C0BA-F847-45BF-9035-0E01ED028FF7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

15
JsonTester/Program.cs Normal file
View File

@@ -0,0 +1,15 @@
using EonaCat.Json;
using System;
using System.IO;
namespace EonaCat.Tester
{
public static class JsonTest
{
public static void Main(string[] args)
{
var test = JsonHelper.ToObject<dynamic>(File.ReadAllText("E:\\TestFiles\\large-file.json"));
Console.WriteLine(JsonHelper.ToJson(test));
}
}
}