suppression fichiers projet test
continuous-integration/drone/push Build is passing Details

master
Céleste BARBOSA 11 months ago
parent c3a52794c4
commit ab99839fd5

@ -1,14 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\CoreLibrary\CoreLibrary.csproj" />
</ItemGroup>
</Project>

@ -1,40 +0,0 @@
using CoreLibrary.Core;
using CoreLibrary.Joueurs;
using System.Reflection;
Code codeSecret = new Code(1);
codeSecret.AjouterJeton(new Jeton(Couleur.Rouge));
Code code1 = new Code(1);
code1.AjouterJeton(new Jeton(Couleur.Vert));
Code code2 = new Code(1);
code2.AjouterJeton(new Jeton(Couleur.Jaune));
List<Code> codes = new List<Code>([
codeSecret,
code1,
code2,
]);
Plateau plateau = new Plateau(1, 1);
FieldInfo? codeSecretInfo = typeof(Plateau).GetField("codeSecret", BindingFlags.NonPublic | BindingFlags.Instance);
codeSecretInfo.SetValue(plateau, codeSecret);
codeSecretInfo = typeof(Plateau).GetField("codeSecret", BindingFlags.NonPublic | BindingFlags.Instance);
plateau.AjouterCode(codeSecret);
var a = codeSecretInfo.GetValue(plateau);
var b = plateau.Grille;
MethodInfo? SupprimerCodesImpossiblesInfo = typeof(Robot).GetMethod("SupprimerCodesImpossibles", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static);
SupprimerCodesImpossiblesInfo.Invoke(new Robot(), [codes, plateau]);
Console.ReadLine();
Loading…
Cancel
Save