Skip to content

Commit

Permalink
Merge pull request #49 from LuigimonSoft/48-create-a-test-project
Browse files Browse the repository at this point in the history
Add the test project
  • Loading branch information
LuigimonSoft committed May 16, 2023
2 parents b26c104 + a080bb6 commit 8c6dcdc
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 1 deletion.
27 changes: 27 additions & 0 deletions DapperEntityORM.Test/DapperEntityORM - Backup.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeCoverage" Version="17.6.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="MSTest.TestAdapter" Version="3.0.2" />
<PackageReference Include="MSTest.TestFramework" Version="3.0.2" />
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\DapperEntityORM\DapperEntityORM.csproj" />
</ItemGroup>

</Project>
26 changes: 26 additions & 0 deletions DapperEntityORM.Test/DapperEntityORM.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="MSTest.TestAdapter" Version="3.0.2" />
<PackageReference Include="MSTest.TestFramework" Version="3.0.2" />
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\DapperEntityORM\DapperEntityORM.csproj" />
</ItemGroup>

</Project>
2 changes: 2 additions & 0 deletions DapperEntityORM.Test/Usings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
global using Microsoft.VisualStudio.TestTools.UnitTesting;
global using Moq;
8 changes: 7 additions & 1 deletion DapperEntityORM.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.33103.184
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DapperEntityORM", "DapperEntityORM\DapperEntityORM.csproj", "{3B2ADFF3-EC4A-4B53-A6AB-E06D5E38F74D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DapperEntityORM", "DapperEntityORM\DapperEntityORM.csproj", "{3B2ADFF3-EC4A-4B53-A6AB-E06D5E38F74D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DapperEntityORM.Test", "DapperEntityORM.Test\DapperEntityORM.Test.csproj", "{76D982D9-0C8D-432A-B6D7-86F0C887A747}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -15,6 +17,10 @@ Global
{3B2ADFF3-EC4A-4B53-A6AB-E06D5E38F74D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3B2ADFF3-EC4A-4B53-A6AB-E06D5E38F74D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3B2ADFF3-EC4A-4B53-A6AB-E06D5E38F74D}.Release|Any CPU.Build.0 = Release|Any CPU
{76D982D9-0C8D-432A-B6D7-86F0C887A747}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{76D982D9-0C8D-432A-B6D7-86F0C887A747}.Debug|Any CPU.Build.0 = Debug|Any CPU
{76D982D9-0C8D-432A-B6D7-86F0C887A747}.Release|Any CPU.ActiveCfg = Release|Any CPU
{76D982D9-0C8D-432A-B6D7-86F0C887A747}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 8c6dcdc

Please sign in to comment.