Skip to content

Commit

Permalink
project base tests nunit #2
Browse files Browse the repository at this point in the history
  • Loading branch information
procopiouriel committed Mar 18, 2024
1 parent 662a528 commit 275f6e9
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 37 deletions.
3 changes: 3 additions & 0 deletions projeto-gerar-horario/Core-Tests/Core-Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@
<PackageReference Include="coverlet.collector" Version="3.2.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Core\Core.csproj" />
</ItemGroup>
</Project>
9 changes: 8 additions & 1 deletion projeto-gerar-horario/Core-Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Core_Tests;
using Core;

namespace Core_Tests;

public class Tests
{
Expand All @@ -10,6 +12,11 @@ public void Setup()
[Test]
public void Test1()
{
var conexao = new Class1();

bool metodoTrue = conexao.Retorno();

Assert.IsTrue(metodoTrue);
Assert.Pass();
}
}
31 changes: 31 additions & 0 deletions projeto-gerar-horario/Core.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 25.0.1706.8
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "Core\Core.csproj", "{EEA93FBA-1535-4D57-8DA4-396C1B4AE7FF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core-Tests", "Core-Tests\Core-Tests.csproj", "{D1698200-ACE2-4853-9AED-D000B7AC95E7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EEA93FBA-1535-4D57-8DA4-396C1B4AE7FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EEA93FBA-1535-4D57-8DA4-396C1B4AE7FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EEA93FBA-1535-4D57-8DA4-396C1B4AE7FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EEA93FBA-1535-4D57-8DA4-396C1B4AE7FF}.Release|Any CPU.Build.0 = Release|Any CPU
{D1698200-ACE2-4853-9AED-D000B7AC95E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1698200-ACE2-4853-9AED-D000B7AC95E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1698200-ACE2-4853-9AED-D000B7AC95E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D1698200-ACE2-4853-9AED-D000B7AC95E7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {92493064-B093-4AF4-9285-0773F4AF56A7}
EndGlobalSection
EndGlobal
16 changes: 10 additions & 6 deletions projeto-gerar-horario/Core/Class1.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
namespace Core;

public class Class1
{

}
namespace Core;

public class Class1
{
public bool Retorno()
{
return true;
}
}

8 changes: 6 additions & 2 deletions projeto-gerar-horario/Core/Core.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<Compile Remove="Program.cs" />
</ItemGroup>
</Project>
9 changes: 9 additions & 0 deletions projeto-gerar-horario/Core/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

class a
{
public static void Main(string[] args)
{

}
}
28 changes: 0 additions & 28 deletions projeto-gerar-horario/projeto-gerar-horario.sln

This file was deleted.

0 comments on commit 275f6e9

Please sign in to comment.