main
SongWJ 7 months ago
parent e90cbb97da
commit 0642e710d7

@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34723.18
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "STranslateDLL", "STranslateDLL\STranslateDLL.csproj", "{6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "STranslateDLL", "STranslateDLL\STranslateDLL.csproj", "{6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "STranslateDLLTests", "STranslateDLLTests\STranslateDLLTests.csproj", "{EAB7B895-1A72-4897-A682-3E151058F6B8}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -15,6 +17,10 @@ Global
{6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}.Debug|Any CPU.Build.0 = Debug|Any CPU {6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}.Release|Any CPU.ActiveCfg = Release|Any CPU {6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}.Release|Any CPU.Build.0 = Release|Any CPU {6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}.Release|Any CPU.Build.0 = Release|Any CPU
{EAB7B895-1A72-4897-A682-3E151058F6B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EAB7B895-1A72-4897-A682-3E151058F6B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EAB7B895-1A72-4897-A682-3E151058F6B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EAB7B895-1A72-4897-A682-3E151058F6B8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

@ -13,6 +13,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<RuntimeIdentifier>win-x64</RuntimeIdentifier> <RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained> <SelfContained>false</SelfContained>
<PublishSingleFile>false</PublishSingleFile> <PublishSingleFile>false</PublishSingleFile>
<PublishReadyToRun>false</PublishReadyToRun> <PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

@ -5,6 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<PublishAot>true</PublishAot> <PublishAot>true</PublishAot>
<AssemblyName>zstranslate</AssemblyName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">

@ -0,0 +1,16 @@
using System.Diagnostics;
using Xunit;
namespace STranslateDLL.Tests;
public class LocalModeTests
{
[Fact()]
public async Task ExecuteAsyncTest()
{
var model = new LocalMode();
Debug.WriteLine(DateTime.Now.ToLongTimeString() + "Start");
await model.ExecuteAsync();
Debug.WriteLine(DateTime.Now.ToLongTimeString() + "Stop");
}
}

@ -0,0 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\STranslateDLL\STranslateDLL.csproj" />
</ItemGroup>
<ItemGroup>
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
</ItemGroup>
</Project>
Loading…
Cancel
Save