Skip to content

Commit

Permalink
project base tests nunit
Browse files Browse the repository at this point in the history
  • Loading branch information
procopiouriel committed Mar 18, 2024
1 parent 98b12d1 commit 662a528
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions projeto-gerar-horario/Core-Tests/Core-Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

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

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2" />
<PackageReference Include="NUnit.Analyzers" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="3.2.0" />
</ItemGroup>

</Project>
15 changes: 15 additions & 0 deletions projeto-gerar-horario/Core-Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace Core_Tests;

public class Tests
{
[SetUp]
public void Setup()
{
}

[Test]
public void Test1()
{
Assert.Pass();
}
}
1 change: 1 addition & 0 deletions projeto-gerar-horario/Core-Tests/Usings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using NUnit.Framework;
6 changes: 6 additions & 0 deletions projeto-gerar-horario/projeto-gerar-horario.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "Core\Core.csproj", "{17660C9A-308E-4EED-B8A8-4E7023123D7B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core-Tests", "Core-Tests\Core-Tests.csproj", "{DAD9F3F3-C1F4-42AB-99EC-2CCF1C4D3AAD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -18,5 +20,9 @@ Global
{17660C9A-308E-4EED-B8A8-4E7023123D7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{17660C9A-308E-4EED-B8A8-4E7023123D7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{17660C9A-308E-4EED-B8A8-4E7023123D7B}.Release|Any CPU.Build.0 = Release|Any CPU
{DAD9F3F3-C1F4-42AB-99EC-2CCF1C4D3AAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DAD9F3F3-C1F4-42AB-99EC-2CCF1C4D3AAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DAD9F3F3-C1F4-42AB-99EC-2CCF1C4D3AAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DAD9F3F3-C1F4-42AB-99EC-2CCF1C4D3AAD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

0 comments on commit 662a528

Please sign in to comment.