fix ExcludeFromCoverage

Popup_qui_marche_pas
Anthony RICHARD 2 years ago
parent 9b3c7baced
commit 8bf5597435

@ -1,8 +1,18 @@
using Model;
using StimPersistance;
using StimStub;
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;
Manager stub = new(new Stub());
Manager persistance = new(new Persistance("../../../../"));
persistance.Mgrpersistance.SaveGame(stub.GameList);
namespace AppConsole
{
[ExcludeFromCodeCoverage]
class Program
{
static void Main(string[] args)
{
Manager stub = new(new Stub());
Manager persistance = new(new Persistance("../../../../"));
persistance.Mgrpersistance.SaveGame(stub.GameList);
}
}
}

@ -5,9 +5,11 @@ using Microsoft.VisualBasic;
using Microsoft.VisualBasic.FileIO;
using Model;
using System.Runtime.InteropServices;
using System.Diagnostics.CodeAnalysis;
namespace StimPersistance
{
[ExcludeFromCodeCoverage]
public class Persistance : IPersistance
{
public Persistance(string chemin)

@ -1,8 +1,10 @@
using Model;
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;
namespace StimStub
{
[ExcludeFromCodeCoverage]
public class Stub : IPersistance
{
public ObservableCollection<Game> Games = new();

@ -11,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Persistance", "Persistance\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stub", "Stub\Stub.csproj", "{0CBABDA2-4D7A-4D4C-84EA-54FB3CF68C80}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppConsole", "AppConsole\AppConsole.csproj", "{41640203-C8F5-435F-9F8A-43FA0F4B8D7E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -33,6 +35,10 @@ Global
{0CBABDA2-4D7A-4D4C-84EA-54FB3CF68C80}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0CBABDA2-4D7A-4D4C-84EA-54FB3CF68C80}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0CBABDA2-4D7A-4D4C-84EA-54FB3CF68C80}.Release|Any CPU.Build.0 = Release|Any CPU
{41640203-C8F5-435F-9F8A-43FA0F4B8D7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{41640203-C8F5-435F-9F8A-43FA0F4B8D7E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{41640203-C8F5-435F-9F8A-43FA0F4B8D7E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{41640203-C8F5-435F-9F8A-43FA0F4B8D7E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

Loading…
Cancel
Save