Skip to content

Commit

Permalink
feature: 添加单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
JusterZhu committed Sep 3, 2024
1 parent a42bdc8 commit d7bee81
Show file tree
Hide file tree
Showing 11 changed files with 197 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/c#/GeneralUpdate.Bowl.Test/GeneralUpdate.Bowl.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<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="xunit" Version="2.5.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
</ItemGroup>

<ItemGroup>
<Using Include="Xunit"/>
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions src/c#/GeneralUpdate.Bowl.Test/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace GeneralUpdate.Bowl.Test;

public class UnitTest1
{
[Fact]
public void Test1()
{
}
}
23 changes: 23 additions & 0 deletions src/c#/GeneralUpdate.Client.Test/GeneralUpdate.Client.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<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="xunit" Version="2.5.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
</ItemGroup>

<ItemGroup>
<Using Include="Xunit"/>
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions src/c#/GeneralUpdate.Client.Test/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace GeneralUpdate.Client.Test;

public class UnitTest1
{
[Fact]
public void Test1()
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<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="xunit" Version="2.5.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
</ItemGroup>

<ItemGroup>
<Using Include="Xunit"/>
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions src/c#/GeneralUpdate.Differential.Test/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace GeneralUpdate.Differential.Test;

public class UnitTest1
{
[Fact]
public void Test1()
{
}
}
23 changes: 23 additions & 0 deletions src/c#/GeneralUpdate.Upgrad.Test/GeneralUpdate.Upgrad.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<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="xunit" Version="2.5.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
</ItemGroup>

<ItemGroup>
<Using Include="Xunit"/>
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions src/c#/GeneralUpdate.Upgrad.Test/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace GeneralUpdate.Upgrad.Test;

public class UnitTest1
{
[Fact]
public void Test1()
{
}
}
23 changes: 23 additions & 0 deletions src/c#/GeneralUpdate.Zip.Test/GeneralUpdate.Zip.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<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="xunit" Version="2.5.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
</ItemGroup>

<ItemGroup>
<Using Include="Xunit"/>
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions src/c#/GeneralUpdate.Zip.Test/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace GeneralUpdate.Zip.Test;

public class UnitTest1
{
[Fact]
public void Test1()
{
}
}
37 changes: 37 additions & 0 deletions src/c#/GeneralUpdate.sln
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GeneralUpdate.Common", "Gen
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GeneralUpdate.Bowl", "GeneralUpdate.Bowl\GeneralUpdate.Bowl.csproj", "{49D0687D-1321-48E9-84C3-936B10532367}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{305810CB-3BBB-4BDF-A718-F68DA1CFC5F5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GeneralUpdate.Client.Test", "GeneralUpdate.Client.Test\GeneralUpdate.Client.Test.csproj", "{D02F729E-2A54-4667-88CA-7EB1C94E0A68}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GeneralUpdate.Upgrad.Test", "GeneralUpdate.Upgrad.Test\GeneralUpdate.Upgrad.Test.csproj", "{665F4A98-C6D3-42E7-BFAE-B4E8FC938FFA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GeneralUpdate.Zip.Test", "GeneralUpdate.Zip.Test\GeneralUpdate.Zip.Test.csproj", "{A7B03A99-3C82-4B1A-B34D-9D43E25EF598}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GeneralUpdate.Differential.Test", "GeneralUpdate.Differential.Test\GeneralUpdate.Differential.Test.csproj", "{B4462DE1-1978-4871-AE51-3A6A2BAF22DC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GeneralUpdate.Bowl.Test", "GeneralUpdate.Bowl.Test\GeneralUpdate.Bowl.Test.csproj", "{B1FE5A6A-F8B4-473D-8492-E43DDC6D73E0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -75,6 +87,26 @@ Global
{49D0687D-1321-48E9-84C3-936B10532367}.Debug|Any CPU.Build.0 = Debug|Any CPU
{49D0687D-1321-48E9-84C3-936B10532367}.Release|Any CPU.ActiveCfg = Release|Any CPU
{49D0687D-1321-48E9-84C3-936B10532367}.Release|Any CPU.Build.0 = Release|Any CPU
{D02F729E-2A54-4667-88CA-7EB1C94E0A68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D02F729E-2A54-4667-88CA-7EB1C94E0A68}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D02F729E-2A54-4667-88CA-7EB1C94E0A68}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D02F729E-2A54-4667-88CA-7EB1C94E0A68}.Release|Any CPU.Build.0 = Release|Any CPU
{665F4A98-C6D3-42E7-BFAE-B4E8FC938FFA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{665F4A98-C6D3-42E7-BFAE-B4E8FC938FFA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{665F4A98-C6D3-42E7-BFAE-B4E8FC938FFA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{665F4A98-C6D3-42E7-BFAE-B4E8FC938FFA}.Release|Any CPU.Build.0 = Release|Any CPU
{A7B03A99-3C82-4B1A-B34D-9D43E25EF598}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A7B03A99-3C82-4B1A-B34D-9D43E25EF598}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A7B03A99-3C82-4B1A-B34D-9D43E25EF598}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A7B03A99-3C82-4B1A-B34D-9D43E25EF598}.Release|Any CPU.Build.0 = Release|Any CPU
{B4462DE1-1978-4871-AE51-3A6A2BAF22DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B4462DE1-1978-4871-AE51-3A6A2BAF22DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B4462DE1-1978-4871-AE51-3A6A2BAF22DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B4462DE1-1978-4871-AE51-3A6A2BAF22DC}.Release|Any CPU.Build.0 = Release|Any CPU
{B1FE5A6A-F8B4-473D-8492-E43DDC6D73E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B1FE5A6A-F8B4-473D-8492-E43DDC6D73E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B1FE5A6A-F8B4-473D-8492-E43DDC6D73E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B1FE5A6A-F8B4-473D-8492-E43DDC6D73E0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -90,6 +122,11 @@ Global
{7779FB4A-D121-48CC-B033-C3D36BD5D4FF} = {74BE0282-A10D-4A81-A0F0-FAA79A6152B7}
{D14E59CD-404B-467B-9C6D-91EFC5994D37} = {91F059E6-7AD3-4FB7-9604-30A7849C6EFF}
{49D0687D-1321-48E9-84C3-936B10532367} = {91F059E6-7AD3-4FB7-9604-30A7849C6EFF}
{D02F729E-2A54-4667-88CA-7EB1C94E0A68} = {305810CB-3BBB-4BDF-A718-F68DA1CFC5F5}
{665F4A98-C6D3-42E7-BFAE-B4E8FC938FFA} = {305810CB-3BBB-4BDF-A718-F68DA1CFC5F5}
{A7B03A99-3C82-4B1A-B34D-9D43E25EF598} = {305810CB-3BBB-4BDF-A718-F68DA1CFC5F5}
{B4462DE1-1978-4871-AE51-3A6A2BAF22DC} = {305810CB-3BBB-4BDF-A718-F68DA1CFC5F5}
{B1FE5A6A-F8B4-473D-8492-E43DDC6D73E0} = {305810CB-3BBB-4BDF-A718-F68DA1CFC5F5}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A7B2D0AD-E000-4749-BAC0-FF21B9872805}
Expand Down

0 comments on commit d7bee81

Please sign in to comment.