Compare commits
No commits in common. 'master' and 'solution' have entirely different histories.
@ -1,43 +0,0 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Wikipets_without_views.sln
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: mcr.microsoft.com/dotnet/sdk:7.0
|
||||
commands:
|
||||
- cd Sources/
|
||||
- dotnet restore Wikipets_without_views.sln
|
||||
- dotnet build Wikipets_without_views.sln -c Release --no-restore
|
||||
depends_on: [clone]
|
||||
|
||||
- name: tests
|
||||
image: mcr.microsoft.com/dotnet/sdk:7.0
|
||||
commands:
|
||||
- cd Sources/
|
||||
- dotnet restore Wikipets_without_views.sln
|
||||
- dotnet test Wikipets_without_views.sln --no-restore
|
||||
depends_on: [build]
|
||||
|
||||
- name: generate-and-deploy-docs
|
||||
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
|
||||
failure: ignore
|
||||
volumes:
|
||||
- name: docs
|
||||
path: /docs
|
||||
commands:
|
||||
- cd Documentation/doxygen
|
||||
- doxygen Doxyfile
|
||||
- /entrypoint.sh
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
depends_on: [ build ]
|
||||
|
||||
volumes:
|
||||
- name: docs
|
||||
temp: {}
|
@ -1,29 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<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="xunit" Version="2.4.2" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="coverlet.collector" Version="3.2.0">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Model\Model.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -1,30 +0,0 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using Model;
|
||||
using NuGet.Frameworks;
|
||||
|
||||
namespace Tests
|
||||
{
|
||||
public class Tests_race
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", null, null)]
|
||||
[InlineData("American curl", "American curl", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Un petit conseil", "Un petit conseil", null, null)]
|
||||
[InlineData("Abyssin", "Abyssin", "Felis catus", "Felis catus", "15 à 20 ans", "15 à 20 ans", "2.7 à 5.5 kg", "2.7 à 5.5 kg", "30 à 45 cm", "30 à 45 cm", "Son comportement", "Son comportement", "Sa santé", "Sa santé", "Son éducation", "Son éducation", "Son entretien", "Son entretien", "Son cout", "Son cout", "Un petit conseil", "Un petit conseil", "abyssin.png", "abyssin.png")]
|
||||
public void TestConstructor(string nom, string expectedNom, string nomScientifique, string exceptedNomScientifique, string esperanceVie, string exceptedEsperanceVie, string poidsMoyen, string exceptedPoidsMoyen, string tailleMoyenne, string exceptedTailleMoyenne, string comportement, string exceptedComportement, string sante, string exceptedSante, string education, string exceptedEducation, string entretien, string exceptedEntretien, string cout, string exceptedCout, string conseil, string exceptedConseil, string? image, string? exceptedImage)
|
||||
{
|
||||
Race r = new Race(nom, nomScientifique, esperanceVie, poidsMoyen, tailleMoyenne, comportement, sante, education, entretien, cout, conseil, image);
|
||||
Assert.Equal(expectedNom, r.Nom);
|
||||
Assert.Equal(exceptedNomScientifique, r.NomScientifique);
|
||||
Assert.Equal(exceptedEsperanceVie, r.EsperanceVie);
|
||||
Assert.Equal(exceptedPoidsMoyen, r.PoidsMoyen);
|
||||
Assert.Equal(exceptedTailleMoyenne, r.TailleMoyenne);
|
||||
Assert.Equal(exceptedComportement, r.Comportement);
|
||||
Assert.Equal(exceptedSante, r.Sante);
|
||||
Assert.Equal(exceptedEducation, r.Education);
|
||||
Assert.Equal(exceptedEntretien, r.Entretien);
|
||||
Assert.Equal(exceptedCout, r.Cout);
|
||||
Assert.Equal(exceptedConseil, r.Conseil);
|
||||
Assert.Equal(exceptedImage, r.Image);
|
||||
}
|
||||
}
|
||||
}
|
@ -1 +0,0 @@
|
||||
global using Xunit;
|
Loading…
Reference in new issue