diff --git a/PokedexS2/Pokedex/Commands/Command.cs b/PokedexS2/Pokedex/Commands/Command.cs index 064830f..e460e51 100644 --- a/PokedexS2/Pokedex/Commands/Command.cs +++ b/PokedexS2/Pokedex/Commands/Command.cs @@ -15,4 +15,5 @@ public Command(Pokedex pokedex, string[] commandArguments) } public abstract void Execute(); + } \ No newline at end of file diff --git a/PokedexS2/Pokedex/Commands/CommandInterpreter.cs b/PokedexS2/Pokedex/Commands/CommandInterpreter.cs index 3c51a1f..21092d8 100644 --- a/PokedexS2/Pokedex/Commands/CommandInterpreter.cs +++ b/PokedexS2/Pokedex/Commands/CommandInterpreter.cs @@ -1,4 +1,4 @@ -using System.Text.RegularExpressions; +using System.Reflection; namespace Pokedex; @@ -29,11 +29,19 @@ public Command Interpret(string[] arguments) //commandName = localizationService.GetText(commandName); string[] commandArguments = arguments.Skip(1).ToArray(); + //return MakeCommand(commandName, pokedex, commandArguments); + switch (commandName) { + case "test": + return MakeCommand("add", pokedex, commandArguments); + case "add": return new AddCommand(pokedex, commandArguments); + // case "add_plant": + // return new AddPlantCommand(pokedex, commandArguments); + case "search": return new SearchCommand(pokedex, commandArguments); @@ -64,4 +72,16 @@ public Command Interpret(string[] arguments) */ } } + + private Command MakeCommand(string name, Pokedex pokedex, string[] commandArguments) + { + string commandName = "Pokedex." + name[0].ToString().ToUpper() + name.Substring(1) + "Command"; + + Assembly asm = Assembly.GetExecutingAssembly(); + System.Type type = asm.GetType(commandName); + + object test = Activator.CreateInstance(type, new object[] { pokedex, commandArguments } ); + + return test as Command; + } } diff --git a/PokedexS2/Pokedex/Commands/DiscoverCommand.cs b/PokedexS2/Pokedex/Commands/DiscoverCommand.cs index 4df1387..d5e3f36 100644 --- a/PokedexS2/Pokedex/Commands/DiscoverCommand.cs +++ b/PokedexS2/Pokedex/Commands/DiscoverCommand.cs @@ -25,14 +25,14 @@ public override void Execute() void Discover(string name) { - Pokemon pokemon = Pokedex.Get(name); + ICollectible pokemon = Pokedex.Get(name); Console.WriteLine($"Pokemon {pokemon.Name} set to discovered"); pokemon.Discover(); } void Discover(int id) { - Pokemon pokemon = Pokedex.Get(id); + ICollectible pokemon = Pokedex.Get(id); Console.WriteLine($"Pokemon {pokemon.Name} set to discovered"); pokemon.Discover(); } diff --git a/PokedexS2/Pokedex/Commands/ListCommand.cs b/PokedexS2/Pokedex/Commands/ListCommand.cs index 91b9b45..b86fe1d 100644 --- a/PokedexS2/Pokedex/Commands/ListCommand.cs +++ b/PokedexS2/Pokedex/Commands/ListCommand.cs @@ -10,6 +10,6 @@ public ListCommand(Pokedex pokedex, string[] commandArguments) public override void Execute() { - // TODO + Console.WriteLine("coucou"); } } \ No newline at end of file diff --git a/PokedexS2/Pokedex/Commands/LoadCommand.cs b/PokedexS2/Pokedex/Commands/LoadCommand.cs index 59d376e..954ed47 100644 --- a/PokedexS2/Pokedex/Commands/LoadCommand.cs +++ b/PokedexS2/Pokedex/Commands/LoadCommand.cs @@ -1,3 +1,5 @@ +using System.Threading.Tasks; + namespace Pokedex; public class LoadCommand : Command @@ -12,6 +14,12 @@ public LoadCommand(Pokedex pokedex, string[] commandArguments) } public override void Execute() + { + throw new NotImplementedException("Execute() is not implemented. Use ExecuteAsync() instead."); + } + + + public async Task ExecuteAsync() { if (!isValid) { @@ -29,12 +37,12 @@ public override void Execute() return; } - StreamReader reader = new StreamReader(path); + using StreamReader reader = new StreamReader(path); int count = 0; while(!reader.EndOfStream) { - string line = reader.ReadLine(); + string line = await reader.ReadLineAsync(); // Ajout Async if (string.IsNullOrWhiteSpace(line)) { continue; @@ -65,6 +73,8 @@ public override void Execute() Console.WriteLine($"{count} pokemons loaded from file."); - reader.Close(); + //reader.Close(); + //reader.Dispose(); + return; } } \ No newline at end of file diff --git a/PokedexS2/Pokedex/Commands/ReadJsonCommand.cs b/PokedexS2/Pokedex/Commands/ReadJsonCommand.cs index 6c2eb00..5037d7b 100644 --- a/PokedexS2/Pokedex/Commands/ReadJsonCommand.cs +++ b/PokedexS2/Pokedex/Commands/ReadJsonCommand.cs @@ -21,6 +21,10 @@ public ReadJsonCommand( } public override void Execute() + { + throw new NotImplementedException(); + } + public async Task ExecuteAsync() { JsonSerializerOptions options = new JsonSerializerOptions { @@ -34,7 +38,7 @@ public override void Execute() try { string path = $"{saveDirecty}/{arguments[0]}.json"; - string content = File.ReadAllText(path); + string content = await File.ReadAllTextAsync(path); PokedexDto pokedexDto = JsonSerializer.Deserialize(content, options); Pokedex.LoadDto(pokedexDto); @@ -47,5 +51,9 @@ public override void Execute() { Console.WriteLine("Fichier non trouvé"); } + finally + { + Console.WriteLine("Finally"); + } } } \ No newline at end of file diff --git a/PokedexS2/Pokedex/Commands/SaveCommand.cs b/PokedexS2/Pokedex/Commands/SaveCommand.cs index 4cd593b..be55c51 100644 --- a/PokedexS2/Pokedex/Commands/SaveCommand.cs +++ b/PokedexS2/Pokedex/Commands/SaveCommand.cs @@ -3,7 +3,7 @@ namespace Pokedex; // save public class SaveCommand : Command { - string saveDirecty = "Data"; + // string saveDirecty = "Data"; public SaveCommand(Pokedex pokedex, string[] commandArguments) : base(pokedex, commandArguments) @@ -16,32 +16,17 @@ public SaveCommand(Pokedex pokedex, string[] commandArguments) public override void Execute() { - // TODO: if valid - string path = AddExtension(arguments[0]); - path = $"{saveDirecty}/{path}"; - Directory.CreateDirectory(saveDirecty); - - StreamWriter streamWriter = new StreamWriter(path); - - SavePokedex(streamWriter); - streamWriter.Flush(); - streamWriter.Close(); - - Console.WriteLine($"Pokedex saved to file {path}"); - } - - void SavePokedex(StreamWriter file) - { - Pokedex.Save(file); - } - - string AddExtension(string path) - { - if (!path.Contains(".")) + /* + if (isValid) { - return $"{path}.csv"; + IWriter writer = new TextWriter(); + string path = $"{saveDirecty}/{arguments[0]}.txt"; + writer.SaveFile(Pokedex, path); } - - return path; + else + { + Console.WriteLine("Argument manquant."); + } + */ } } \ No newline at end of file diff --git a/PokedexS2/Pokedex/Commands/SearchCommand.cs b/PokedexS2/Pokedex/Commands/SearchCommand.cs index 2595d8f..907e47d 100644 --- a/PokedexS2/Pokedex/Commands/SearchCommand.cs +++ b/PokedexS2/Pokedex/Commands/SearchCommand.cs @@ -20,11 +20,11 @@ public override void Execute() return; } - Pokemon pokemon = Pokedex.Get(arguments[0]); + ICollectible pokemon = Pokedex.Get(arguments[0]); if (pokemon != null) { Console.WriteLine($"Name: {pokemon.Name} ({pokemon.Id})"); - Console.WriteLine($"Type: {pokemon.Type}"); + //Console.WriteLine($"Type: {pokemon.Type}"); } else { diff --git a/PokedexS2/Pokedex/Commands/WriteJsonCommand.cs b/PokedexS2/Pokedex/Commands/WriteJsonCommand.cs index 0df7d9f..4d4f019 100644 --- a/PokedexS2/Pokedex/Commands/WriteJsonCommand.cs +++ b/PokedexS2/Pokedex/Commands/WriteJsonCommand.cs @@ -1,6 +1,4 @@ -using System.Text.Encodings.Web; -using System.Text.Json; -using System.Text.Unicode; +using System.Threading.Tasks; namespace Pokedex; @@ -12,25 +10,31 @@ public class WriteJsonCommand : Command public WriteJsonCommand(Pokedex pokedex, string[] commandArguments) : base(pokedex, commandArguments) { + if (commandArguments.Length != 1) + { + isValid = false; + } } - public override void Execute() { - // Cette classe permet de configurer comment est écrit le fichier JSON - JsonSerializerOptions options = new JsonSerializerOptions + throw new NotImplementedException(); + } + + public async Task ExecuteAsync() + { + if (isValid) { - WriteIndented = true, - PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower, - // Le comporte par défault du sérialiseur est débile et échappe tous les caractères non ASCII - // par exemple Salamèche -> Salam\u00E8che. Pour éviter ça on utilise l'option qui suit - Encoder = JavaScriptEncoder.Create(UnicodeRanges.BasicLatin, UnicodeRanges.Latin1Supplement), - }; - - PokedexDto pokedexDto = Pokedex.ToDto(); - string jsonString = JsonSerializer.Serialize(pokedexDto, options); - string path = $"{saveDirecty}/{arguments[0]}.json"; - File.WriteAllText(path, jsonString); - - Console.WriteLine("Fichier bien sauvegardé."); + IWriter writer = new JsonWriter(); + string path = $"{saveDirecty}/{arguments[0]}.json"; + await writer.SaveFileAsync(Pokedex, path); + } + else + { + Console.WriteLine("Argument manquant."); + } } + + // TODO : faire une commande unique qui refactore WriteJsonCmd et SaveCmd + // qui contient private IWriter GetWriter(string format) + // (bonus: ajout xml) } \ No newline at end of file diff --git a/PokedexS2/Pokedex/ICollectible.cs b/PokedexS2/Pokedex/ICollectible.cs new file mode 100644 index 0000000..c4f95c6 --- /dev/null +++ b/PokedexS2/Pokedex/ICollectible.cs @@ -0,0 +1,9 @@ +namespace Pokedex; + +public interface ICollectible +{ + int Id { get; } + string Name { get; } + bool Discovered { get; } + void Discover(); +} \ No newline at end of file diff --git a/PokedexS2/Pokedex/Plant.cs b/PokedexS2/Pokedex/Plant.cs new file mode 100644 index 0000000..c9bc196 --- /dev/null +++ b/PokedexS2/Pokedex/Plant.cs @@ -0,0 +1,21 @@ +namespace Pokedex; + +public class Plant : ICollectible +{ + public int Id { get; private set; } + + public string Name { get; private set; } + + public bool Discovered { get; private set; } + + public Plant(int id, string name) + { + Id = id; + Name = name; + } + + public void Discover() + { + Discovered = true; + } +} \ No newline at end of file diff --git a/PokedexS2/Pokedex/Pokedex.cs b/PokedexS2/Pokedex/Pokedex.cs index 45d41c1..bde3f07 100644 --- a/PokedexS2/Pokedex/Pokedex.cs +++ b/PokedexS2/Pokedex/Pokedex.cs @@ -3,7 +3,15 @@ namespace Pokedex; public class Pokedex { - Pokemon[] pokemons = new Pokemon[151]; + ICollectible[] collectibles = new ICollectible[151]; + + public int Count + { + get + { + return collectibles.Length; + } + } public Pokedex() { @@ -11,36 +19,40 @@ public Pokedex() public Pokedex(PokedexDto pokedexDto) { - LoadDto(pokedexDto); + throw new NotImplementedException(); + //LoadDto(pokedexDto); } public void LoadDto(PokedexDto pokedexDto) { + throw new NotImplementedException(); + /* foreach (PokemonDto pokemonDto in pokedexDto.Pokemons) { Pokemon pokemon = new Pokemon(pokemonDto); pokemons[pokemon.Id] = pokemon; } + */ } - public void Add(Pokemon p) + public void Add(ICollectible p) { - pokemons[p.Id - 1] = p; + collectibles[p.Id - 1] = p; } - public void Discover(Pokemon p) + public void Discover(ICollectible p) { p.Discover(); } - public Pokemon Get(int id) + public ICollectible Get(int id) { - return pokemons[id - 1]; + return collectibles[id - 1]; } - public Pokemon Get(string name) + public ICollectible Get(string name) { - foreach (Pokemon pokemon in pokemons) + foreach (ICollectible pokemon in collectibles) { if (pokemon != null && pokemon.Name.ToLower() == name.ToLower()) { @@ -54,7 +66,7 @@ public Pokemon Get(string name) public Pokemon[] GetByType(Type type) { int arraySize = 0; - foreach (Pokemon pokemon in pokemons) + foreach (Pokemon pokemon in collectibles) { if (pokemon != null && pokemon.Type.HasFlag(type)) { @@ -64,7 +76,7 @@ public Pokemon[] GetByType(Type type) int index = 0; Pokemon[] result = new Pokemon[arraySize]; - foreach (Pokemon pokemon in pokemons) + foreach (Pokemon pokemon in collectibles) { if (pokemon != null && pokemon.Type.HasFlag(type)) { @@ -77,7 +89,7 @@ public Pokemon[] GetByType(Type type) public void Save(StreamWriter file) { - foreach (Pokemon pokemon in pokemons) + foreach (Pokemon pokemon in collectibles) { if (pokemon != null) { @@ -88,13 +100,16 @@ public void Save(StreamWriter file) public PokedexDto ToDto() { + throw new NotImplementedException(); + /* return new PokedexDto { // On converti tous les pokémons en leur version DTO - Pokemons = pokemons + Pokemons = collectibles .Where(p => p != null) .Select(p => p.ToDto()) .ToArray() }; + */ } } diff --git a/PokedexS2/Pokedex/Pokemon.cs b/PokedexS2/Pokedex/Pokemon.cs index a04aeda..52e4d1c 100644 --- a/PokedexS2/Pokedex/Pokemon.cs +++ b/PokedexS2/Pokedex/Pokemon.cs @@ -1,6 +1,6 @@ namespace Pokedex; -public class Pokemon +public class Pokemon : ICollectible { string separator = ";"; diff --git a/PokedexS2/Pokedex/Program.cs b/PokedexS2/Pokedex/Program.cs index 68301b3..e85f984 100644 --- a/PokedexS2/Pokedex/Program.cs +++ b/PokedexS2/Pokedex/Program.cs @@ -1,10 +1,10 @@ -using System.Globalization; +using System.Threading.Tasks; namespace Pokedex; public class Program { - public static void Main(string[] args) + public static async Task Main(string[] args) { Pokedex pokedex = new Pokedex(); LocalizationService localizationService = new LocalizationService(); @@ -19,7 +19,24 @@ public static void Main(string[] args) try { Command command = interpreter.Interpret(commandArgs); - command.Execute(); + switch (command) + { + case LoadCommand loadCommand: + await loadCommand.ExecuteAsync(); + break; + + case ReadJsonCommand readJsonCommand: + await readJsonCommand.ExecuteAsync(); + break; + + case WriteJsonCommand writeJsonCommand: + await writeJsonCommand.ExecuteAsync(); + break; + + default: + command.Execute(); + break; + } } catch (CommandNotFoundException e) { diff --git a/PokedexS2/Pokedex/Writers/IWriter.cs b/PokedexS2/Pokedex/Writers/IWriter.cs new file mode 100644 index 0000000..2a69e55 --- /dev/null +++ b/PokedexS2/Pokedex/Writers/IWriter.cs @@ -0,0 +1,8 @@ +namespace Pokedex; + +public interface IWriter +{ + bool SaveFile(Pokedex pokedex, string path); + + Task SaveFileAsync(Pokedex pokedex, string path); +} \ No newline at end of file diff --git a/PokedexS2/Pokedex/Writers/JSONWriter.cs b/PokedexS2/Pokedex/Writers/JSONWriter.cs new file mode 100644 index 0000000..e9de458 --- /dev/null +++ b/PokedexS2/Pokedex/Writers/JSONWriter.cs @@ -0,0 +1,64 @@ +using System.Text.Encodings.Web; +using System.Text.Json; +using System.Text.Unicode; + +namespace Pokedex; + +public class JsonWriter : IWriter +{ + public bool SaveFile(Pokedex pokedex, string path) + { + try + { + string content = GetJson(pokedex); + File.WriteAllText(path, content); + + Console.WriteLine("Fichier bien sauvegardé."); + } + catch (Exception e) + { + Console.Error.WriteLine(e.Message); + + return false; + } + + return true; + } + + public async Task SaveFileAsync(Pokedex pokedex, string path) + { + try + { + string content = GetJson(pokedex); + await File.WriteAllTextAsync(path, content); + + Console.WriteLine("Fichier bien sauvegardé."); + } + catch (Exception e) + { + Console.Error.WriteLine(e.Message); + + return false; + } + + return true; + } + + private string GetJson(Pokedex pokedex) + { + // Cette classe permet de configurer comment est écrit le fichier JSON + JsonSerializerOptions options = new JsonSerializerOptions + { + WriteIndented = true, + PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower, + // Le comporte par défault du sérialiseur est débile et échappe tous les caractères non ASCII + // par exemple Salamèche -> Salam\u00E8che. Pour éviter ça on utilise l'option qui suit + Encoder = JavaScriptEncoder.Create(UnicodeRanges.BasicLatin, UnicodeRanges.Latin1Supplement), + }; + + PokedexDto pokedexDto = pokedex.ToDto(); + string jsonString = JsonSerializer.Serialize(pokedexDto, options); + + return jsonString; + } +} \ No newline at end of file diff --git a/PokedexS2/Pokedex/Writers/TextWriter.cs b/PokedexS2/Pokedex/Writers/TextWriter.cs new file mode 100644 index 0000000..ec7942a --- /dev/null +++ b/PokedexS2/Pokedex/Writers/TextWriter.cs @@ -0,0 +1,39 @@ +namespace Pokedex; + +/* +public class TextWriter : IWriter +{ + public bool SaveFile(Pokedex pokedex, string path) + { + // TODO: if valid + string path = AddExtension(arguments[0]); + path = $"{saveDirecty}/{path}"; + Directory.CreateDirectory(saveDirecty); + + StreamWriter streamWriter = new StreamWriter(path); + + SavePokedex(streamWriter); + streamWriter.Flush(); + streamWriter.Close(); + + Console.WriteLine($"Pokedex saved to file {path}"); + + return true; + } + + void SavePokedex(StreamWriter file) + { + Pokedex.Save(file); + } + + string AddExtension(string path) + { + if (!path.Contains(".")) + { + return $"{path}.csv"; + } + + return path; + } +} + */ \ No newline at end of file diff --git a/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex b/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex new file mode 100755 index 0000000..12f1827 Binary files /dev/null and b/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex differ diff --git a/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.deps.json b/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.deps.json new file mode 100644 index 0000000..fc58fad --- /dev/null +++ b/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "Pokedex/1.0.0": { + "runtime": { + "Pokedex.dll": {} + } + } + } + }, + "libraries": { + "Pokedex/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.dll b/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.dll new file mode 100644 index 0000000..35da9ba Binary files /dev/null and b/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.dll differ diff --git a/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.pdb b/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.pdb new file mode 100644 index 0000000..2dad148 Binary files /dev/null and b/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.pdb differ diff --git a/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.runtimeconfig.json b/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/PokedexS2/Pokedex/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..dca70aa --- /dev/null +++ b/PokedexS2/Pokedex/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfo.cs b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfo.cs new file mode 100644 index 0000000..a15bc13 --- /dev/null +++ b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Pokedex")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5e43958bb153e53027a3dc10179ed14b6f08cafc")] +[assembly: System.Reflection.AssemblyProductAttribute("Pokedex")] +[assembly: System.Reflection.AssemblyTitleAttribute("Pokedex")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Généré par la classe MSBuild WriteCodeFragment. + diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfoInputs.cache b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfoInputs.cache new file mode 100644 index 0000000..f5b5d13 --- /dev/null +++ b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +255cb63999ca9623eea0b93a233f0bd314d09c09b2a06f8d5b7e30a74cae2081 diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.GeneratedMSBuildEditorConfig.editorconfig b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..5837da4 --- /dev/null +++ b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = Pokedex +build_property.ProjectDir = /Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.GlobalUsings.g.cs b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.assets.cache b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.assets.cache new file mode 100644 index 0000000..c5c98b4 Binary files /dev/null and b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.assets.cache differ diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.csproj.CoreCompileInputs.cache b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..9ed92b3 --- /dev/null +++ b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +3df9752dc0ea1c3e108804c7e62ba43fb07438b955950c1f99990cf105e4c2ce diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.csproj.FileListAbsolute.txt b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..22018e9 --- /dev/null +++ b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.csproj.FileListAbsolute.txt @@ -0,0 +1,34 @@ +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/Pokedex/obj/Debug/net8.0/Pokedex.GeneratedMSBuildEditorConfig.editorconfig +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfoInputs.cache +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfo.cs +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/Pokedex/obj/Debug/net8.0/Pokedex.csproj.CoreCompileInputs.cache +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.GeneratedMSBuildEditorConfig.editorconfig +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfoInputs.cache +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfo.cs +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.csproj.CoreCompileInputs.cache +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.sourcelink.json +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.deps.json +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.runtimeconfig.json +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.dll +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.pdb +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.dll +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/refint/Pokedex.dll +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.pdb +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.genruntimeconfig.cache +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/Async/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/ref/Pokedex.dll +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.deps.json +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.runtimeconfig.json +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.dll +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/bin/Debug/net8.0/Pokedex.pdb +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.GeneratedMSBuildEditorConfig.editorconfig +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfoInputs.cache +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.AssemblyInfo.cs +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.csproj.CoreCompileInputs.cache +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.sourcelink.json +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.dll +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/refint/Pokedex.dll +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.pdb +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.genruntimeconfig.cache +/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/Debug/net8.0/ref/Pokedex.dll diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.dll b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.dll new file mode 100644 index 0000000..35da9ba Binary files /dev/null and b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.dll differ diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.genruntimeconfig.cache b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.genruntimeconfig.cache new file mode 100644 index 0000000..4156ea2 --- /dev/null +++ b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.genruntimeconfig.cache @@ -0,0 +1 @@ +c1c079f56805fa53f82affe3ddea839f2908ebb543be9d9bf76a99937dfbe964 diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.pdb b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.pdb new file mode 100644 index 0000000..2dad148 Binary files /dev/null and b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.pdb differ diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.sourcelink.json b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.sourcelink.json new file mode 100644 index 0000000..9801a50 --- /dev/null +++ b/PokedexS2/Pokedex/obj/Debug/net8.0/Pokedex.sourcelink.json @@ -0,0 +1 @@ +{"documents":{"/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/*":"https://raw.githubusercontent.com/PerrineQhn/CoursPooInalcoM2/5e43958bb153e53027a3dc10179ed14b6f08cafc/*"}} \ No newline at end of file diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/apphost b/PokedexS2/Pokedex/obj/Debug/net8.0/apphost new file mode 100755 index 0000000..12f1827 Binary files /dev/null and b/PokedexS2/Pokedex/obj/Debug/net8.0/apphost differ diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/ref/Pokedex.dll b/PokedexS2/Pokedex/obj/Debug/net8.0/ref/Pokedex.dll new file mode 100644 index 0000000..4b1323f Binary files /dev/null and b/PokedexS2/Pokedex/obj/Debug/net8.0/ref/Pokedex.dll differ diff --git a/PokedexS2/Pokedex/obj/Debug/net8.0/refint/Pokedex.dll b/PokedexS2/Pokedex/obj/Debug/net8.0/refint/Pokedex.dll new file mode 100644 index 0000000..4b1323f Binary files /dev/null and b/PokedexS2/Pokedex/obj/Debug/net8.0/refint/Pokedex.dll differ diff --git a/PokedexS2/Pokedex/obj/Pokedex.csproj.nuget.dgspec.json b/PokedexS2/Pokedex/obj/Pokedex.csproj.nuget.dgspec.json new file mode 100644 index 0000000..2dcce7d --- /dev/null +++ b/PokedexS2/Pokedex/obj/Pokedex.csproj.nuget.dgspec.json @@ -0,0 +1,81 @@ +{ + "format": 1, + "restore": { + "/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj": {} + }, + "projects": { + "/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj", + "projectName": "Pokedex", + "projectPath": "/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj", + "packagesPath": "/Users/perrineqhn/.nuget/packages/", + "outputPath": "/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/Users/perrineqhn/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.200" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[8.0.13, 8.0.13]" + }, + { + "name": "Microsoft.NETCore.App.Host.osx-arm64", + "version": "[8.0.13, 8.0.13]" + }, + { + "name": "Microsoft.NETCore.App.Ref", + "version": "[8.0.13, 8.0.13]" + } + ], + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/9.0.200/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/PokedexS2/Pokedex/obj/Pokedex.csproj.nuget.g.props b/PokedexS2/Pokedex/obj/Pokedex.csproj.nuget.g.props new file mode 100644 index 0000000..669dd69 --- /dev/null +++ b/PokedexS2/Pokedex/obj/Pokedex.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /Users/perrineqhn/.nuget/packages/ + /Users/perrineqhn/.nuget/packages/ + PackageReference + 6.13.0 + + + + + \ No newline at end of file diff --git a/PokedexS2/Pokedex/obj/Pokedex.csproj.nuget.g.targets b/PokedexS2/Pokedex/obj/Pokedex.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/PokedexS2/Pokedex/obj/Pokedex.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/PokedexS2/Pokedex/obj/project.assets.json b/PokedexS2/Pokedex/obj/project.assets.json new file mode 100644 index 0000000..e9fae85 --- /dev/null +++ b/PokedexS2/Pokedex/obj/project.assets.json @@ -0,0 +1,86 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "/Users/perrineqhn/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj", + "projectName": "Pokedex", + "projectPath": "/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj", + "packagesPath": "/Users/perrineqhn/.nuget/packages/", + "outputPath": "/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/Users/perrineqhn/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.200" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[8.0.13, 8.0.13]" + }, + { + "name": "Microsoft.NETCore.App.Host.osx-arm64", + "version": "[8.0.13, 8.0.13]" + }, + { + "name": "Microsoft.NETCore.App.Ref", + "version": "[8.0.13, 8.0.13]" + } + ], + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/9.0.200/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/PokedexS2/Pokedex/obj/project.nuget.cache b/PokedexS2/Pokedex/obj/project.nuget.cache new file mode 100644 index 0000000..4c95c08 --- /dev/null +++ b/PokedexS2/Pokedex/obj/project.nuget.cache @@ -0,0 +1,12 @@ +{ + "version": 2, + "dgSpecHash": "h1v04mfzdJM=", + "success": true, + "projectFilePath": "/Users/perrineqhn/Desktop/M2/S2/POO/Fork/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj", + "expectedPackageFiles": [ + "/Users/perrineqhn/.nuget/packages/microsoft.netcore.app.ref/8.0.13/microsoft.netcore.app.ref.8.0.13.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.13/microsoft.aspnetcore.app.ref.8.0.13.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/microsoft.netcore.app.host.osx-arm64/8.0.13/microsoft.netcore.app.host.osx-arm64.8.0.13.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file diff --git a/PokedexS2/PokedexS2.sln b/PokedexS2/PokedexS2.sln new file mode 100644 index 0000000..29b9c8b --- /dev/null +++ b/PokedexS2/PokedexS2.sln @@ -0,0 +1,30 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{9CF47860-2CEA-F379-09D8-9AEF27965D12}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pokedex", "Pokedex\Pokedex.csproj", "{BBC10297-B2D8-AFFC-EEC9-EF8307ED2D0E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9CF47860-2CEA-F379-09D8-9AEF27965D12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9CF47860-2CEA-F379-09D8-9AEF27965D12}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9CF47860-2CEA-F379-09D8-9AEF27965D12}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9CF47860-2CEA-F379-09D8-9AEF27965D12}.Release|Any CPU.Build.0 = Release|Any CPU + {BBC10297-B2D8-AFFC-EEC9-EF8307ED2D0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BBC10297-B2D8-AFFC-EEC9-EF8307ED2D0E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BBC10297-B2D8-AFFC-EEC9-EF8307ED2D0E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BBC10297-B2D8-AFFC-EEC9-EF8307ED2D0E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {04BA989B-2DAA-42A3-AC2E-F78D2EEB86D0} + EndGlobalSection +EndGlobal diff --git a/PokedexS2/Tests/.gitignore b/PokedexS2/Tests/.gitignore new file mode 100644 index 0000000..6dd29b7 --- /dev/null +++ b/PokedexS2/Tests/.gitignore @@ -0,0 +1 @@ +bin/ \ No newline at end of file diff --git a/PokedexS2/Tests/AbsTest.cs b/PokedexS2/Tests/AbsTest.cs new file mode 100644 index 0000000..337dc36 --- /dev/null +++ b/PokedexS2/Tests/AbsTest.cs @@ -0,0 +1,56 @@ +namespace Tests; + +public class AbsTests // Cherche toutes les classes publiques +{ + [Fact] + public void AbsNegTest() + { + // Arrange + int n = -1; + int expected = 1; + + // Act + int result = Maths.Abs(n); + + // Assert + Assert.Equal(expected, result); + + } + + [Fact] + public void AbsPosTest() + { + // Arrange + int n = 1; + int expected = 1; + + // Act + int result = Maths.Abs(n); + + // Assert + Assert.Equal(expected, result); + + } + + [Fact] + public void AbsZeroTest() + { + // Act + int result = Maths.Abs(0); + + // Assert + Assert.Equal(0, result); + + } + + [Fact] + public void AbsBigNumTest() + { + // Act + int result = Maths.Abs(5390183); + + // Assert + Assert.Equal(5390183, result); + + } +} diff --git a/PokedexS2/Tests/Maths.cs b/PokedexS2/Tests/Maths.cs new file mode 100644 index 0000000..47c54e3 --- /dev/null +++ b/PokedexS2/Tests/Maths.cs @@ -0,0 +1,13 @@ +public static class Maths +{ + public static int Abs(int n) + { + if (n < 0) + { + n = n * -1; + } + return n; + + // return n < 0 ? -n : n; + } +} \ No newline at end of file diff --git a/PokedexS2/Tests/PokedexTests.cs b/PokedexS2/Tests/PokedexTests.cs new file mode 100644 index 0000000..edb9786 --- /dev/null +++ b/PokedexS2/Tests/PokedexTests.cs @@ -0,0 +1,50 @@ +using Pokedex; + +namespace Tests; + + +public class PokedexTests +{ + [Fact] + public void AddMonsterTest() + { + // Arrange + Pokemon pokemon = new Pokemon(1, "Bulbizarre", Type.Grass); + Pokedex.Pokedex pokedex = new Pokedex.Pokedex(); // Pokedex.Pokedex car Pokedex est à la fois un namespace et une classe + + // Act + pokedex.Add(pokemon); + + // Assert + Assert.Equal(1, pokedex.Count); // (valeur attendue, valeur test) + } + + [Fact] + public void GetMonsterTest() + { + // Arrange + Pokemon pokemon = new Pokemon(1, "Bulbizarre", Type.Grass); + Pokedex.Pokedex pokedex = new Pokedex.Pokedex(); + + // Act + pokedex.Add(pokemon); + + // Assert + Assert.Equal(pokemon, pokedex.Get("Bulbizarre")); + } + + [Fact] + public void DiscoverMonsterTest() + { + // Arrange + Pokemon pokemon = new Pokemon(1, "Bulbizarre", Type.Grass); + Pokedex.Pokedex pokedex = new Pokedex.Pokedex(); + + // Act + pokedex.Add(pokemon); + pokedex.Discover(pokemon); + + // Assert + Assert.True(pokemon.Discovered); + } +} \ No newline at end of file diff --git a/PokedexS2/Tests/Tests.csproj b/PokedexS2/Tests/Tests.csproj new file mode 100644 index 0000000..b63b0b2 --- /dev/null +++ b/PokedexS2/Tests/Tests.csproj @@ -0,0 +1,26 @@ + + + + net9.0 + enable + enable + false + + + + + + + + + + + + + + + + + + + diff --git a/PokedexS2/Tests/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/PokedexS2/Tests/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs new file mode 100644 index 0000000..9e76325 --- /dev/null +++ b/PokedexS2/Tests/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.AssemblyInfo.cs b/PokedexS2/Tests/obj/Debug/net9.0/Tests.AssemblyInfo.cs new file mode 100644 index 0000000..26c3a7d --- /dev/null +++ b/PokedexS2/Tests/obj/Debug/net9.0/Tests.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Tests")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f477e7bfc1a5bdc5b8d6f77698cf17830aeae3be")] +[assembly: System.Reflection.AssemblyProductAttribute("Tests")] +[assembly: System.Reflection.AssemblyTitleAttribute("Tests")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Généré par la classe MSBuild WriteCodeFragment. + diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.AssemblyInfoInputs.cache b/PokedexS2/Tests/obj/Debug/net9.0/Tests.AssemblyInfoInputs.cache new file mode 100644 index 0000000..724935a --- /dev/null +++ b/PokedexS2/Tests/obj/Debug/net9.0/Tests.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +5b607a1670c42a4576a79e4152c106e04040b454aca3a4562df4112a1509c55e diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.GeneratedMSBuildEditorConfig.editorconfig b/PokedexS2/Tests/obj/Debug/net9.0/Tests.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..396b760 --- /dev/null +++ b/PokedexS2/Tests/obj/Debug/net9.0/Tests.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net9.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = Tests +build_property.ProjectDir = /Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 9.0 +build_property.EnableCodeStyleSeverity = diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.GlobalUsings.g.cs b/PokedexS2/Tests/obj/Debug/net9.0/Tests.GlobalUsings.g.cs new file mode 100644 index 0000000..2cd3d38 --- /dev/null +++ b/PokedexS2/Tests/obj/Debug/net9.0/Tests.GlobalUsings.g.cs @@ -0,0 +1,9 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; +global using global::Xunit; diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.assets.cache b/PokedexS2/Tests/obj/Debug/net9.0/Tests.assets.cache new file mode 100644 index 0000000..70d63d0 Binary files /dev/null and b/PokedexS2/Tests/obj/Debug/net9.0/Tests.assets.cache differ diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.AssemblyReference.cache b/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.AssemblyReference.cache new file mode 100644 index 0000000..9cc9ea9 Binary files /dev/null and b/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.AssemblyReference.cache differ diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.CoreCompileInputs.cache b/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..5645e29 --- /dev/null +++ b/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +d9bee7a59fe412bfa0f4375ab586ef119bc65190cd8d849eef376519cdce41de diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.FileListAbsolute.txt b/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..af254fd --- /dev/null +++ b/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.FileListAbsolute.txt @@ -0,0 +1,105 @@ +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/xunit.runner.visualstudio.testadapter.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/xunit.runner.reporters.netcoreapp10.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/xunit.runner.utility.netcoreapp10.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Tests.deps.json +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Tests.runtimeconfig.json +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Tests.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Tests.pdb +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Microsoft.VisualStudio.CodeCoverage.Shim.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Microsoft.TestPlatform.CoreUtilities.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Microsoft.TestPlatform.PlatformAbstractions.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Microsoft.TestPlatform.CommunicationUtilities.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Microsoft.TestPlatform.CrossPlatEngine.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Microsoft.TestPlatform.Utilities.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Microsoft.VisualStudio.TestPlatform.Common.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/testhost.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Newtonsoft.Json.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/xunit.abstractions.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/xunit.assert.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/xunit.core.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/xunit.execution.dotnet.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/de/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/es/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/fr/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/fr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/it/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/it/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ja/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ja/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ko/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ko/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/pl/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/pl/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ru/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ru/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/tr/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/tr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/zh-Hans/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/zh-Hant/Microsoft.TestPlatform.CoreUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/cs/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/cs/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/cs/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/de/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/de/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/de/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/es/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/es/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/es/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/fr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/fr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/fr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/it/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/it/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/it/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ja/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ja/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ja/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ko/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ko/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ko/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/pl/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/pl/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/pl/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/pt-BR/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/pt-BR/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ru/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ru/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/ru/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/tr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/tr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/tr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/zh-Hans/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/zh-Hans/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/zh-Hant/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/zh-Hant/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.AssemblyReference.cache +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/Tests.GeneratedMSBuildEditorConfig.editorconfig +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/Tests.AssemblyInfoInputs.cache +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/Tests.AssemblyInfo.cs +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.CoreCompileInputs.cache +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/Tests.sourcelink.json +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.Up2Date +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/Tests.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/refint/Tests.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/Tests.pdb +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/Tests.genruntimeconfig.cache +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/Debug/net9.0/ref/Tests.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/.msCoverageSourceRootsMapping_Tests +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/CoverletSourceRootsMapping_Tests +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Pokedex.deps.json +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Pokedex.runtimeconfig.json +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Pokedex +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Pokedex.dll +/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/bin/Debug/net9.0/Pokedex.pdb diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.Up2Date b/PokedexS2/Tests/obj/Debug/net9.0/Tests.csproj.Up2Date new file mode 100644 index 0000000..e69de29 diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.dll b/PokedexS2/Tests/obj/Debug/net9.0/Tests.dll new file mode 100644 index 0000000..3be3232 Binary files /dev/null and b/PokedexS2/Tests/obj/Debug/net9.0/Tests.dll differ diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.genruntimeconfig.cache b/PokedexS2/Tests/obj/Debug/net9.0/Tests.genruntimeconfig.cache new file mode 100644 index 0000000..70e7c76 --- /dev/null +++ b/PokedexS2/Tests/obj/Debug/net9.0/Tests.genruntimeconfig.cache @@ -0,0 +1 @@ +6dbb2388b34e78e954f4db09d88a120218beee93b0a6ed9d4005cf5973ba8852 diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.pdb b/PokedexS2/Tests/obj/Debug/net9.0/Tests.pdb new file mode 100644 index 0000000..4358faf Binary files /dev/null and b/PokedexS2/Tests/obj/Debug/net9.0/Tests.pdb differ diff --git a/PokedexS2/Tests/obj/Debug/net9.0/Tests.sourcelink.json b/PokedexS2/Tests/obj/Debug/net9.0/Tests.sourcelink.json new file mode 100644 index 0000000..2ef9c8f --- /dev/null +++ b/PokedexS2/Tests/obj/Debug/net9.0/Tests.sourcelink.json @@ -0,0 +1 @@ +{"documents":{"/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/*":"https://raw.githubusercontent.com/titanix/CoursPooInalcoM2/f477e7bfc1a5bdc5b8d6f77698cf17830aeae3be/*"}} \ No newline at end of file diff --git a/PokedexS2/Tests/obj/Debug/net9.0/ref/Tests.dll b/PokedexS2/Tests/obj/Debug/net9.0/ref/Tests.dll new file mode 100644 index 0000000..f7a3e49 Binary files /dev/null and b/PokedexS2/Tests/obj/Debug/net9.0/ref/Tests.dll differ diff --git a/PokedexS2/Tests/obj/Debug/net9.0/refint/Tests.dll b/PokedexS2/Tests/obj/Debug/net9.0/refint/Tests.dll new file mode 100644 index 0000000..f7a3e49 Binary files /dev/null and b/PokedexS2/Tests/obj/Debug/net9.0/refint/Tests.dll differ diff --git a/PokedexS2/Tests/obj/Tests.csproj.nuget.dgspec.json b/PokedexS2/Tests/obj/Tests.csproj.nuget.dgspec.json new file mode 100644 index 0000000..73c7fe4 --- /dev/null +++ b/PokedexS2/Tests/obj/Tests.csproj.nuget.dgspec.json @@ -0,0 +1,148 @@ +{ + "format": 1, + "restore": { + "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/Tests.csproj": {} + }, + "projects": { + "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj", + "projectName": "Pokedex", + "projectPath": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj", + "packagesPath": "/Users/perrineqhn/.nuget/packages/", + "outputPath": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Pokedex/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/Users/perrineqhn/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "9.0.100" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/9.0.100/PortableRuntimeIdentifierGraph.json" + } + } + }, + "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/Tests.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/Tests.csproj", + "projectName": "Tests", + "projectPath": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/Tests.csproj", + "packagesPath": "/Users/perrineqhn/.nuget/packages/", + "outputPath": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/Users/perrineqhn/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net9.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.0", + "projectReferences": { + "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj": { + "projectPath": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj" + } + } + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "9.0.100" + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.0", + "dependencies": { + "Microsoft.NET.Test.Sdk": { + "target": "Package", + "version": "[17.11.1, )" + }, + "coverlet.collector": { + "target": "Package", + "version": "[6.0.2, )" + }, + "xunit": { + "target": "Package", + "version": "[2.9.2, )" + }, + "xunit.runner.visualstudio": { + "target": "Package", + "version": "[2.8.2, )" + } + }, + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/9.0.100/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/PokedexS2/Tests/obj/Tests.csproj.nuget.g.props b/PokedexS2/Tests/obj/Tests.csproj.nuget.g.props new file mode 100644 index 0000000..7bdd024 --- /dev/null +++ b/PokedexS2/Tests/obj/Tests.csproj.nuget.g.props @@ -0,0 +1,25 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /Users/perrineqhn/.nuget/packages/ + /Users/perrineqhn/.nuget/packages/ + PackageReference + 6.12.0 + + + + + + + + + + + + + /Users/perrineqhn/.nuget/packages/xunit.analyzers/1.16.0 + + \ No newline at end of file diff --git a/PokedexS2/Tests/obj/Tests.csproj.nuget.g.targets b/PokedexS2/Tests/obj/Tests.csproj.nuget.g.targets new file mode 100644 index 0000000..48c9980 --- /dev/null +++ b/PokedexS2/Tests/obj/Tests.csproj.nuget.g.targets @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PokedexS2/Tests/obj/project.assets.json b/PokedexS2/Tests/obj/project.assets.json new file mode 100644 index 0000000..83a7ca6 --- /dev/null +++ b/PokedexS2/Tests/obj/project.assets.json @@ -0,0 +1,1045 @@ +{ + "version": 3, + "targets": { + "net9.0": { + "coverlet.collector/6.0.2": { + "type": "package", + "build": { + "build/netstandard2.0/coverlet.collector.targets": {} + } + }, + "Microsoft.CodeCoverage/17.11.1": { + "type": "package", + "compile": { + "lib/netcoreapp3.1/Microsoft.VisualStudio.CodeCoverage.Shim.dll": {} + }, + "runtime": { + "lib/netcoreapp3.1/Microsoft.VisualStudio.CodeCoverage.Shim.dll": {} + }, + "build": { + "build/netstandard2.0/Microsoft.CodeCoverage.props": {}, + "build/netstandard2.0/Microsoft.CodeCoverage.targets": {} + } + }, + "Microsoft.NET.Test.Sdk/17.11.1": { + "type": "package", + "dependencies": { + "Microsoft.CodeCoverage": "17.11.1", + "Microsoft.TestPlatform.TestHost": "17.11.1" + }, + "compile": { + "lib/netcoreapp3.1/_._": {} + }, + "runtime": { + "lib/netcoreapp3.1/_._": {} + }, + "build": { + "build/netcoreapp3.1/Microsoft.NET.Test.Sdk.props": {}, + "build/netcoreapp3.1/Microsoft.NET.Test.Sdk.targets": {} + }, + "buildMultiTargeting": { + "buildMultiTargeting/Microsoft.NET.Test.Sdk.props": {} + } + }, + "Microsoft.TestPlatform.ObjectModel/17.11.1": { + "type": "package", + "dependencies": { + "System.Reflection.Metadata": "1.6.0" + }, + "compile": { + "lib/netcoreapp3.1/Microsoft.TestPlatform.CoreUtilities.dll": {}, + "lib/netcoreapp3.1/Microsoft.TestPlatform.PlatformAbstractions.dll": {}, + "lib/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll": {} + }, + "runtime": { + "lib/netcoreapp3.1/Microsoft.TestPlatform.CoreUtilities.dll": {}, + "lib/netcoreapp3.1/Microsoft.TestPlatform.PlatformAbstractions.dll": {}, + "lib/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll": {} + }, + "resource": { + "lib/netcoreapp3.1/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "cs" + }, + "lib/netcoreapp3.1/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "cs" + }, + "lib/netcoreapp3.1/de/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "de" + }, + "lib/netcoreapp3.1/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "de" + }, + "lib/netcoreapp3.1/es/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "es" + }, + "lib/netcoreapp3.1/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "es" + }, + "lib/netcoreapp3.1/fr/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "fr" + }, + "lib/netcoreapp3.1/fr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "fr" + }, + "lib/netcoreapp3.1/it/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "it" + }, + "lib/netcoreapp3.1/it/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "it" + }, + "lib/netcoreapp3.1/ja/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "ja" + }, + "lib/netcoreapp3.1/ja/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "ja" + }, + "lib/netcoreapp3.1/ko/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "ko" + }, + "lib/netcoreapp3.1/ko/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "ko" + }, + "lib/netcoreapp3.1/pl/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "pl" + }, + "lib/netcoreapp3.1/pl/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "pl" + }, + "lib/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "pt-BR" + }, + "lib/netcoreapp3.1/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "pt-BR" + }, + "lib/netcoreapp3.1/ru/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "ru" + }, + "lib/netcoreapp3.1/ru/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "ru" + }, + "lib/netcoreapp3.1/tr/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "tr" + }, + "lib/netcoreapp3.1/tr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "tr" + }, + "lib/netcoreapp3.1/zh-Hans/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "zh-Hans" + }, + "lib/netcoreapp3.1/zh-Hans/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "zh-Hans" + }, + "lib/netcoreapp3.1/zh-Hant/Microsoft.TestPlatform.CoreUtilities.resources.dll": { + "locale": "zh-Hant" + }, + "lib/netcoreapp3.1/zh-Hant/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll": { + "locale": "zh-Hant" + } + } + }, + "Microsoft.TestPlatform.TestHost/17.11.1": { + "type": "package", + "dependencies": { + "Microsoft.TestPlatform.ObjectModel": "17.11.1", + "Newtonsoft.Json": "13.0.1" + }, + "compile": { + "lib/netcoreapp3.1/Microsoft.TestPlatform.CommunicationUtilities.dll": {}, + "lib/netcoreapp3.1/Microsoft.TestPlatform.CoreUtilities.dll": {}, + "lib/netcoreapp3.1/Microsoft.TestPlatform.CrossPlatEngine.dll": {}, + "lib/netcoreapp3.1/Microsoft.TestPlatform.PlatformAbstractions.dll": {}, + "lib/netcoreapp3.1/Microsoft.TestPlatform.Utilities.dll": {}, + "lib/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.Common.dll": {}, + "lib/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll": {}, + "lib/netcoreapp3.1/testhost.dll": { + "related": ".deps.json" + } + }, + "runtime": { + "lib/netcoreapp3.1/Microsoft.TestPlatform.CommunicationUtilities.dll": {}, + "lib/netcoreapp3.1/Microsoft.TestPlatform.CoreUtilities.dll": {}, + "lib/netcoreapp3.1/Microsoft.TestPlatform.CrossPlatEngine.dll": {}, + "lib/netcoreapp3.1/Microsoft.TestPlatform.PlatformAbstractions.dll": {}, + "lib/netcoreapp3.1/Microsoft.TestPlatform.Utilities.dll": {}, + "lib/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.Common.dll": {}, + "lib/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll": {}, + "lib/netcoreapp3.1/testhost.dll": { + "related": ".deps.json" + } + }, + "resource": { + "lib/netcoreapp3.1/cs/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "cs" + }, + "lib/netcoreapp3.1/cs/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "cs" + }, + "lib/netcoreapp3.1/cs/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "cs" + }, + "lib/netcoreapp3.1/de/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "de" + }, + "lib/netcoreapp3.1/de/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "de" + }, + "lib/netcoreapp3.1/de/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "de" + }, + "lib/netcoreapp3.1/es/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "es" + }, + "lib/netcoreapp3.1/es/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "es" + }, + "lib/netcoreapp3.1/es/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "es" + }, + "lib/netcoreapp3.1/fr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "fr" + }, + "lib/netcoreapp3.1/fr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "fr" + }, + "lib/netcoreapp3.1/fr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "fr" + }, + "lib/netcoreapp3.1/it/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "it" + }, + "lib/netcoreapp3.1/it/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "it" + }, + "lib/netcoreapp3.1/it/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "it" + }, + "lib/netcoreapp3.1/ja/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "ja" + }, + "lib/netcoreapp3.1/ja/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "ja" + }, + "lib/netcoreapp3.1/ja/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "ja" + }, + "lib/netcoreapp3.1/ko/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "ko" + }, + "lib/netcoreapp3.1/ko/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "ko" + }, + "lib/netcoreapp3.1/ko/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "ko" + }, + "lib/netcoreapp3.1/pl/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "pl" + }, + "lib/netcoreapp3.1/pl/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "pl" + }, + "lib/netcoreapp3.1/pl/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "pl" + }, + "lib/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "pt-BR" + }, + "lib/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "pt-BR" + }, + "lib/netcoreapp3.1/pt-BR/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "pt-BR" + }, + "lib/netcoreapp3.1/ru/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "ru" + }, + "lib/netcoreapp3.1/ru/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "ru" + }, + "lib/netcoreapp3.1/ru/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "ru" + }, + "lib/netcoreapp3.1/tr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "tr" + }, + "lib/netcoreapp3.1/tr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "tr" + }, + "lib/netcoreapp3.1/tr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "tr" + }, + "lib/netcoreapp3.1/zh-Hans/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "zh-Hans" + }, + "lib/netcoreapp3.1/zh-Hans/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "zh-Hans" + }, + "lib/netcoreapp3.1/zh-Hans/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "zh-Hans" + }, + "lib/netcoreapp3.1/zh-Hant/Microsoft.TestPlatform.CommunicationUtilities.resources.dll": { + "locale": "zh-Hant" + }, + "lib/netcoreapp3.1/zh-Hant/Microsoft.TestPlatform.CrossPlatEngine.resources.dll": { + "locale": "zh-Hant" + }, + "lib/netcoreapp3.1/zh-Hant/Microsoft.VisualStudio.TestPlatform.Common.resources.dll": { + "locale": "zh-Hant" + } + }, + "build": { + "build/netcoreapp3.1/Microsoft.TestPlatform.TestHost.props": {} + } + }, + "Newtonsoft.Json/13.0.1": { + "type": "package", + "compile": { + "lib/netstandard2.0/Newtonsoft.Json.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/Newtonsoft.Json.dll": { + "related": ".xml" + } + } + }, + "System.Reflection.Metadata/1.6.0": { + "type": "package", + "compile": { + "lib/netstandard2.0/System.Reflection.Metadata.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/System.Reflection.Metadata.dll": { + "related": ".xml" + } + } + }, + "xunit/2.9.2": { + "type": "package", + "dependencies": { + "xunit.analyzers": "1.16.0", + "xunit.assert": "2.9.2", + "xunit.core": "[2.9.2]" + } + }, + "xunit.abstractions/2.0.3": { + "type": "package", + "compile": { + "lib/netstandard2.0/xunit.abstractions.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/xunit.abstractions.dll": { + "related": ".xml" + } + } + }, + "xunit.analyzers/1.16.0": { + "type": "package" + }, + "xunit.assert/2.9.2": { + "type": "package", + "compile": { + "lib/net6.0/xunit.assert.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net6.0/xunit.assert.dll": { + "related": ".xml" + } + } + }, + "xunit.core/2.9.2": { + "type": "package", + "dependencies": { + "xunit.extensibility.core": "[2.9.2]", + "xunit.extensibility.execution": "[2.9.2]" + }, + "build": { + "build/xunit.core.props": {}, + "build/xunit.core.targets": {} + }, + "buildMultiTargeting": { + "buildMultiTargeting/xunit.core.props": {}, + "buildMultiTargeting/xunit.core.targets": {} + } + }, + "xunit.extensibility.core/2.9.2": { + "type": "package", + "dependencies": { + "xunit.abstractions": "2.0.3" + }, + "compile": { + "lib/netstandard1.1/xunit.core.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard1.1/xunit.core.dll": { + "related": ".xml" + } + } + }, + "xunit.extensibility.execution/2.9.2": { + "type": "package", + "dependencies": { + "xunit.extensibility.core": "[2.9.2]" + }, + "compile": { + "lib/netstandard1.1/xunit.execution.dotnet.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard1.1/xunit.execution.dotnet.dll": { + "related": ".xml" + } + } + }, + "xunit.runner.visualstudio/2.8.2": { + "type": "package", + "compile": { + "lib/net6.0/_._": {} + }, + "runtime": { + "lib/net6.0/_._": {} + }, + "build": { + "build/net6.0/xunit.runner.visualstudio.props": {} + } + }, + "Pokedex/1.0.0": { + "type": "project", + "framework": ".NETCoreApp,Version=v8.0", + "compile": { + "bin/placeholder/Pokedex.dll": {} + }, + "runtime": { + "bin/placeholder/Pokedex.dll": {} + } + } + } + }, + "libraries": { + "coverlet.collector/6.0.2": { + "sha512": "bJShQ6uWRTQ100ZeyiMqcFlhP7WJ+bCuabUs885dJiBEzMsJMSFr7BOyeCw4rgvQokteGi5rKQTlkhfQPUXg2A==", + "type": "package", + "path": "coverlet.collector/6.0.2", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "VSTestIntegration.md", + "build/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", + "build/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", + "build/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll", + "build/netstandard2.0/Microsoft.Extensions.DependencyModel.dll", + "build/netstandard2.0/Microsoft.Extensions.FileSystemGlobbing.dll", + "build/netstandard2.0/Microsoft.TestPlatform.CoreUtilities.dll", + "build/netstandard2.0/Microsoft.TestPlatform.PlatformAbstractions.dll", + "build/netstandard2.0/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll", + "build/netstandard2.0/Mono.Cecil.Mdb.dll", + "build/netstandard2.0/Mono.Cecil.Pdb.dll", + "build/netstandard2.0/Mono.Cecil.Rocks.dll", + "build/netstandard2.0/Mono.Cecil.dll", + "build/netstandard2.0/Newtonsoft.Json.dll", + "build/netstandard2.0/NuGet.Frameworks.dll", + "build/netstandard2.0/NuGet.Versioning.dll", + "build/netstandard2.0/System.Buffers.dll", + "build/netstandard2.0/System.Collections.Immutable.dll", + "build/netstandard2.0/System.Memory.dll", + "build/netstandard2.0/System.Numerics.Vectors.dll", + "build/netstandard2.0/System.Reflection.Metadata.dll", + "build/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", + "build/netstandard2.0/System.Text.Encodings.Web.dll", + "build/netstandard2.0/System.Text.Json.dll", + "build/netstandard2.0/System.Threading.Tasks.Extensions.dll", + "build/netstandard2.0/coverlet.collector.deps.json", + "build/netstandard2.0/coverlet.collector.dll", + "build/netstandard2.0/coverlet.collector.pdb", + "build/netstandard2.0/coverlet.collector.targets", + "build/netstandard2.0/coverlet.core.dll", + "build/netstandard2.0/coverlet.core.pdb", + "build/netstandard2.0/coverlet.core.xml", + "build/netstandard2.0/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/de/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/es/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/fr/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/fr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/it/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/it/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/ja/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/ja/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/ko/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/ko/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/pl/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/pl/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/ru/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/ru/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/tr/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/tr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/zh-Hans/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "build/netstandard2.0/zh-Hant/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "build/netstandard2.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "coverlet-icon.png", + "coverlet.collector.6.0.2.nupkg.sha512", + "coverlet.collector.nuspec" + ] + }, + "Microsoft.CodeCoverage/17.11.1": { + "sha512": "nPJqrcA5iX+Y0kqoT3a+pD/8lrW/V7ayqnEJQsTonSoPz59J8bmoQhcSN4G8+UJ64Hkuf0zuxnfuj2lkHOq4cA==", + "type": "package", + "path": "microsoft.codecoverage/17.11.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "ThirdPartyNotices.txt", + "build/netstandard2.0/CodeCoverage/CodeCoverage.config", + "build/netstandard2.0/CodeCoverage/CodeCoverage.exe", + "build/netstandard2.0/CodeCoverage/VanguardInstrumentationProfiler_x86.config", + "build/netstandard2.0/CodeCoverage/amd64/CodeCoverage.exe", + "build/netstandard2.0/CodeCoverage/amd64/VanguardInstrumentationProfiler_x64.config", + "build/netstandard2.0/CodeCoverage/amd64/covrun64.dll", + "build/netstandard2.0/CodeCoverage/amd64/msdia140.dll", + "build/netstandard2.0/CodeCoverage/arm64/VanguardInstrumentationProfiler_arm64.config", + "build/netstandard2.0/CodeCoverage/arm64/covrunarm64.dll", + "build/netstandard2.0/CodeCoverage/arm64/msdia140.dll", + "build/netstandard2.0/CodeCoverage/codecoveragemessages.dll", + "build/netstandard2.0/CodeCoverage/coreclr/Microsoft.VisualStudio.CodeCoverage.Shim.dll", + "build/netstandard2.0/CodeCoverage/covrun32.dll", + "build/netstandard2.0/CodeCoverage/msdia140.dll", + "build/netstandard2.0/InstrumentationEngine/alpine/x64/VanguardInstrumentationProfiler_x64.config", + "build/netstandard2.0/InstrumentationEngine/alpine/x64/libCoverageInstrumentationMethod.so", + "build/netstandard2.0/InstrumentationEngine/alpine/x64/libInstrumentationEngine.so", + "build/netstandard2.0/InstrumentationEngine/arm64/MicrosoftInstrumentationEngine_arm64.dll", + "build/netstandard2.0/InstrumentationEngine/macos/x64/VanguardInstrumentationProfiler_x64.config", + "build/netstandard2.0/InstrumentationEngine/macos/x64/libCoverageInstrumentationMethod.dylib", + "build/netstandard2.0/InstrumentationEngine/macos/x64/libInstrumentationEngine.dylib", + "build/netstandard2.0/InstrumentationEngine/ubuntu/x64/VanguardInstrumentationProfiler_x64.config", + "build/netstandard2.0/InstrumentationEngine/ubuntu/x64/libCoverageInstrumentationMethod.so", + "build/netstandard2.0/InstrumentationEngine/ubuntu/x64/libInstrumentationEngine.so", + "build/netstandard2.0/InstrumentationEngine/x64/MicrosoftInstrumentationEngine_x64.dll", + "build/netstandard2.0/InstrumentationEngine/x86/MicrosoftInstrumentationEngine_x86.dll", + "build/netstandard2.0/Microsoft.CodeCoverage.Core.dll", + "build/netstandard2.0/Microsoft.CodeCoverage.Instrumentation.Core.dll", + "build/netstandard2.0/Microsoft.CodeCoverage.Instrumentation.dll", + "build/netstandard2.0/Microsoft.CodeCoverage.Interprocess.dll", + "build/netstandard2.0/Microsoft.CodeCoverage.props", + "build/netstandard2.0/Microsoft.CodeCoverage.targets", + "build/netstandard2.0/Microsoft.DiaSymReader.dll", + "build/netstandard2.0/Microsoft.VisualStudio.TraceDataCollector.dll", + "build/netstandard2.0/Mono.Cecil.Pdb.dll", + "build/netstandard2.0/Mono.Cecil.Rocks.dll", + "build/netstandard2.0/Mono.Cecil.dll", + "build/netstandard2.0/ThirdPartyNotices.txt", + "build/netstandard2.0/cs/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/de/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/es/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/fr/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/it/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/ja/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/ko/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/pl/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/pt-BR/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/ru/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/tr/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/zh-Hans/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "build/netstandard2.0/zh-Hant/Microsoft.VisualStudio.TraceDataCollector.resources.dll", + "lib/net462/Microsoft.VisualStudio.CodeCoverage.Shim.dll", + "lib/netcoreapp3.1/Microsoft.VisualStudio.CodeCoverage.Shim.dll", + "microsoft.codecoverage.17.11.1.nupkg.sha512", + "microsoft.codecoverage.nuspec" + ] + }, + "Microsoft.NET.Test.Sdk/17.11.1": { + "sha512": "U3Ty4BaGoEu+T2bwSko9tWqWUOU16WzSFkq6U8zve75oRBMSLTBdMAZrVNNz1Tq12aCdDom9fcOcM9QZaFHqFg==", + "type": "package", + "path": "microsoft.net.test.sdk/17.11.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "build/net462/Microsoft.NET.Test.Sdk.props", + "build/net462/Microsoft.NET.Test.Sdk.targets", + "build/netcoreapp3.1/Microsoft.NET.Test.Sdk.Program.cs", + "build/netcoreapp3.1/Microsoft.NET.Test.Sdk.Program.fs", + "build/netcoreapp3.1/Microsoft.NET.Test.Sdk.Program.vb", + "build/netcoreapp3.1/Microsoft.NET.Test.Sdk.props", + "build/netcoreapp3.1/Microsoft.NET.Test.Sdk.targets", + "buildMultiTargeting/Microsoft.NET.Test.Sdk.props", + "lib/net462/_._", + "lib/netcoreapp3.1/_._", + "microsoft.net.test.sdk.17.11.1.nupkg.sha512", + "microsoft.net.test.sdk.nuspec" + ] + }, + "Microsoft.TestPlatform.ObjectModel/17.11.1": { + "sha512": "E2jZqAU6JeWEVsyOEOrSW1o1bpHLgb25ypvKNB/moBXPVsFYBPd/Jwi7OrYahG50J83LfHzezYI+GaEkpAotiA==", + "type": "package", + "path": "microsoft.testplatform.objectmodel/17.11.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "lib/net462/Microsoft.TestPlatform.CoreUtilities.dll", + "lib/net462/Microsoft.TestPlatform.PlatformAbstractions.dll", + "lib/net462/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll", + "lib/net462/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/de/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/es/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/fr/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/fr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/it/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/it/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/ja/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/ja/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/ko/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/ko/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/pl/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/pl/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/ru/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/ru/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/tr/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/tr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/zh-Hans/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/zh-Hans/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/net462/zh-Hant/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/net462/zh-Hant/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/Microsoft.TestPlatform.CoreUtilities.dll", + "lib/netcoreapp3.1/Microsoft.TestPlatform.PlatformAbstractions.dll", + "lib/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll", + "lib/netcoreapp3.1/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/de/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/es/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/fr/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/fr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/it/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/it/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/ja/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/ja/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/ko/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/ko/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/pl/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/pl/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/ru/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/ru/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/tr/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/tr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/zh-Hans/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/zh-Hans/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netcoreapp3.1/zh-Hant/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netcoreapp3.1/zh-Hant/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/Microsoft.TestPlatform.CoreUtilities.dll", + "lib/netstandard2.0/Microsoft.TestPlatform.PlatformAbstractions.dll", + "lib/netstandard2.0/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll", + "lib/netstandard2.0/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/de/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/es/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/fr/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/fr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/it/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/it/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/ja/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/ja/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/ko/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/ko/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/pl/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/pl/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/ru/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/ru/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/tr/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/tr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/zh-Hans/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "lib/netstandard2.0/zh-Hant/Microsoft.TestPlatform.CoreUtilities.resources.dll", + "lib/netstandard2.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll", + "microsoft.testplatform.objectmodel.17.11.1.nupkg.sha512", + "microsoft.testplatform.objectmodel.nuspec" + ] + }, + "Microsoft.TestPlatform.TestHost/17.11.1": { + "sha512": "DnG+GOqJXO/CkoqlJWeDFTgPhqD/V6VqUIL3vINizCWZ3X+HshCtbbyDdSHQQEjrc2Sl/K3yaxX6s+5LFEdYuw==", + "type": "package", + "path": "microsoft.testplatform.testhost/17.11.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "ThirdPartyNotices.txt", + "build/netcoreapp3.1/Microsoft.TestPlatform.TestHost.props", + "build/netcoreapp3.1/x64/testhost.dll", + "build/netcoreapp3.1/x64/testhost.exe", + "build/netcoreapp3.1/x86/testhost.x86.dll", + "build/netcoreapp3.1/x86/testhost.x86.exe", + "lib/net462/_._", + "lib/netcoreapp3.1/Microsoft.TestPlatform.CommunicationUtilities.dll", + "lib/netcoreapp3.1/Microsoft.TestPlatform.CoreUtilities.dll", + "lib/netcoreapp3.1/Microsoft.TestPlatform.CrossPlatEngine.dll", + "lib/netcoreapp3.1/Microsoft.TestPlatform.PlatformAbstractions.dll", + "lib/netcoreapp3.1/Microsoft.TestPlatform.Utilities.dll", + "lib/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.Common.dll", + "lib/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll", + "lib/netcoreapp3.1/cs/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/cs/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/cs/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/de/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/de/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/de/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/es/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/es/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/es/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/fr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/fr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/fr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/it/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/it/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/it/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/ja/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/ja/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/ja/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/ko/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/ko/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/ko/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/pl/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/pl/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/pl/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/pt-BR/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/ru/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/ru/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/ru/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/testhost.deps.json", + "lib/netcoreapp3.1/testhost.dll", + "lib/netcoreapp3.1/tr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/tr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/tr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/x64/msdia140.dll", + "lib/netcoreapp3.1/x86/msdia140.dll", + "lib/netcoreapp3.1/zh-Hans/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/zh-Hans/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/zh-Hans/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "lib/netcoreapp3.1/zh-Hant/Microsoft.TestPlatform.CommunicationUtilities.resources.dll", + "lib/netcoreapp3.1/zh-Hant/Microsoft.TestPlatform.CrossPlatEngine.resources.dll", + "lib/netcoreapp3.1/zh-Hant/Microsoft.VisualStudio.TestPlatform.Common.resources.dll", + "microsoft.testplatform.testhost.17.11.1.nupkg.sha512", + "microsoft.testplatform.testhost.nuspec" + ] + }, + "Newtonsoft.Json/13.0.1": { + "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", + "type": "package", + "path": "newtonsoft.json/13.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.md", + "lib/net20/Newtonsoft.Json.dll", + "lib/net20/Newtonsoft.Json.xml", + "lib/net35/Newtonsoft.Json.dll", + "lib/net35/Newtonsoft.Json.xml", + "lib/net40/Newtonsoft.Json.dll", + "lib/net40/Newtonsoft.Json.xml", + "lib/net45/Newtonsoft.Json.dll", + "lib/net45/Newtonsoft.Json.xml", + "lib/netstandard1.0/Newtonsoft.Json.dll", + "lib/netstandard1.0/Newtonsoft.Json.xml", + "lib/netstandard1.3/Newtonsoft.Json.dll", + "lib/netstandard1.3/Newtonsoft.Json.xml", + "lib/netstandard2.0/Newtonsoft.Json.dll", + "lib/netstandard2.0/Newtonsoft.Json.xml", + "newtonsoft.json.13.0.1.nupkg.sha512", + "newtonsoft.json.nuspec", + "packageIcon.png" + ] + }, + "System.Reflection.Metadata/1.6.0": { + "sha512": "COC1aiAJjCoA5GBF+QKL2uLqEBew4JsCkQmoHKbN3TlOZKa2fKLz5CpiRQKDz0RsAOEGsVKqOD5bomsXq/4STQ==", + "type": "package", + "path": "system.reflection.metadata/1.6.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/netstandard1.1/System.Reflection.Metadata.dll", + "lib/netstandard1.1/System.Reflection.Metadata.xml", + "lib/netstandard2.0/System.Reflection.Metadata.dll", + "lib/netstandard2.0/System.Reflection.Metadata.xml", + "lib/portable-net45+win8/System.Reflection.Metadata.dll", + "lib/portable-net45+win8/System.Reflection.Metadata.xml", + "system.reflection.metadata.1.6.0.nupkg.sha512", + "system.reflection.metadata.nuspec", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, + "xunit/2.9.2": { + "sha512": "7LhFS2N9Z6Xgg8aE5lY95cneYivRMfRI8v+4PATa4S64D5Z/Plkg0qa8dTRHSiGRgVZ/CL2gEfJDE5AUhOX+2Q==", + "type": "package", + "path": "xunit/2.9.2", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "_content/README.md", + "_content/logo-128-transparent.png", + "xunit.2.9.2.nupkg.sha512", + "xunit.nuspec" + ] + }, + "xunit.abstractions/2.0.3": { + "sha512": "pot1I4YOxlWjIb5jmwvvQNbTrZ3lJQ+jUGkGjWE3hEFM0l5gOnBWS+H3qsex68s5cO52g+44vpGzhAt+42vwKg==", + "type": "package", + "path": "xunit.abstractions/2.0.3", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/net35/xunit.abstractions.dll", + "lib/net35/xunit.abstractions.xml", + "lib/netstandard1.0/xunit.abstractions.dll", + "lib/netstandard1.0/xunit.abstractions.xml", + "lib/netstandard2.0/xunit.abstractions.dll", + "lib/netstandard2.0/xunit.abstractions.xml", + "xunit.abstractions.2.0.3.nupkg.sha512", + "xunit.abstractions.nuspec" + ] + }, + "xunit.analyzers/1.16.0": { + "sha512": "hptYM7vGr46GUIgZt21YHO4rfuBAQS2eINbFo16CV/Dqq+24Tp+P5gDCACu1AbFfW4Sp/WRfDPSK8fmUUb8s0Q==", + "type": "package", + "path": "xunit.analyzers/1.16.0", + "hasTools": true, + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "_content/README.md", + "_content/logo-128-transparent.png", + "analyzers/dotnet/cs/xunit.analyzers.dll", + "analyzers/dotnet/cs/xunit.analyzers.fixes.dll", + "tools/install.ps1", + "tools/uninstall.ps1", + "xunit.analyzers.1.16.0.nupkg.sha512", + "xunit.analyzers.nuspec" + ] + }, + "xunit.assert/2.9.2": { + "sha512": "QkNBAQG4pa66cholm28AxijBjrmki98/vsEh4Sx5iplzotvPgpiotcxqJQMRC8d7RV7nIT8ozh97957hDnZwsQ==", + "type": "package", + "path": "xunit.assert/2.9.2", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "_content/README.md", + "_content/logo-128-transparent.png", + "lib/net6.0/xunit.assert.dll", + "lib/net6.0/xunit.assert.xml", + "lib/netstandard1.1/xunit.assert.dll", + "lib/netstandard1.1/xunit.assert.xml", + "xunit.assert.2.9.2.nupkg.sha512", + "xunit.assert.nuspec" + ] + }, + "xunit.core/2.9.2": { + "sha512": "O6RrNSdmZ0xgEn5kT927PNwog5vxTtKrWMihhhrT0Sg9jQ7iBDciYOwzBgP2krBEk5/GBXI18R1lKvmnxGcb4w==", + "type": "package", + "path": "xunit.core/2.9.2", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "_content/README.md", + "_content/logo-128-transparent.png", + "build/xunit.core.props", + "build/xunit.core.targets", + "buildMultiTargeting/xunit.core.props", + "buildMultiTargeting/xunit.core.targets", + "xunit.core.2.9.2.nupkg.sha512", + "xunit.core.nuspec" + ] + }, + "xunit.extensibility.core/2.9.2": { + "sha512": "Ol+KlBJz1x8BrdnhN2DeOuLrr1I/cTwtHCggL9BvYqFuVd/TUSzxNT5O0NxCIXth30bsKxgMfdqLTcORtM52yQ==", + "type": "package", + "path": "xunit.extensibility.core/2.9.2", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "_content/README.md", + "_content/logo-128-transparent.png", + "lib/net452/xunit.core.dll", + "lib/net452/xunit.core.dll.tdnet", + "lib/net452/xunit.core.xml", + "lib/net452/xunit.runner.tdnet.dll", + "lib/net452/xunit.runner.utility.net452.dll", + "lib/netstandard1.1/xunit.core.dll", + "lib/netstandard1.1/xunit.core.xml", + "xunit.extensibility.core.2.9.2.nupkg.sha512", + "xunit.extensibility.core.nuspec" + ] + }, + "xunit.extensibility.execution/2.9.2": { + "sha512": "rKMpq4GsIUIJibXuZoZ8lYp5EpROlnYaRpwu9Zr0sRZXE7JqJfEEbCsUriZqB+ByXCLFBJyjkTRULMdC+U566g==", + "type": "package", + "path": "xunit.extensibility.execution/2.9.2", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "_content/README.md", + "_content/logo-128-transparent.png", + "lib/net452/xunit.execution.desktop.dll", + "lib/net452/xunit.execution.desktop.xml", + "lib/netstandard1.1/xunit.execution.dotnet.dll", + "lib/netstandard1.1/xunit.execution.dotnet.xml", + "xunit.extensibility.execution.2.9.2.nupkg.sha512", + "xunit.extensibility.execution.nuspec" + ] + }, + "xunit.runner.visualstudio/2.8.2": { + "sha512": "vm1tbfXhFmjFMUmS4M0J0ASXz3/U5XvXBa6DOQUL3fEz4Vt6YPhv+ESCarx6M6D+9kJkJYZKCNvJMas1+nVfmQ==", + "type": "package", + "path": "xunit.runner.visualstudio/2.8.2", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "_content/README.md", + "_content/logo-128-transparent.png", + "build/net462/xunit.abstractions.dll", + "build/net462/xunit.runner.reporters.net452.dll", + "build/net462/xunit.runner.utility.net452.dll", + "build/net462/xunit.runner.visualstudio.props", + "build/net462/xunit.runner.visualstudio.testadapter.dll", + "build/net6.0/xunit.abstractions.dll", + "build/net6.0/xunit.runner.reporters.netcoreapp10.dll", + "build/net6.0/xunit.runner.utility.netcoreapp10.dll", + "build/net6.0/xunit.runner.visualstudio.props", + "build/net6.0/xunit.runner.visualstudio.testadapter.dll", + "lib/net462/_._", + "lib/net6.0/_._", + "xunit.runner.visualstudio.2.8.2.nupkg.sha512", + "xunit.runner.visualstudio.nuspec" + ] + }, + "Pokedex/1.0.0": { + "type": "project", + "path": "../Pokedex/Pokedex.csproj", + "msbuildProject": "../Pokedex/Pokedex.csproj" + } + }, + "projectFileDependencyGroups": { + "net9.0": [ + "Microsoft.NET.Test.Sdk >= 17.11.1", + "Pokedex >= 1.0.0", + "coverlet.collector >= 6.0.2", + "xunit >= 2.9.2", + "xunit.runner.visualstudio >= 2.8.2" + ] + }, + "packageFolders": { + "/Users/perrineqhn/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/Tests.csproj", + "projectName": "Tests", + "projectPath": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/Tests.csproj", + "packagesPath": "/Users/perrineqhn/.nuget/packages/", + "outputPath": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/Users/perrineqhn/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net9.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.0", + "projectReferences": { + "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj": { + "projectPath": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Pokedex/Pokedex.csproj" + } + } + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "9.0.100" + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.0", + "dependencies": { + "Microsoft.NET.Test.Sdk": { + "target": "Package", + "version": "[17.11.1, )" + }, + "coverlet.collector": { + "target": "Package", + "version": "[6.0.2, )" + }, + "xunit": { + "target": "Package", + "version": "[2.9.2, )" + }, + "xunit.runner.visualstudio": { + "target": "Package", + "version": "[2.8.2, )" + } + }, + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/9.0.100/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/PokedexS2/Tests/obj/project.nuget.cache b/PokedexS2/Tests/obj/project.nuget.cache new file mode 100644 index 0000000..238c94d --- /dev/null +++ b/PokedexS2/Tests/obj/project.nuget.cache @@ -0,0 +1,24 @@ +{ + "version": 2, + "dgSpecHash": "6EZgM6elUC0=", + "success": true, + "projectFilePath": "/Users/perrineqhn/Desktop/M2/S2/POO/CoursPooInalcoM2/PokedexS2/Tests/Tests.csproj", + "expectedPackageFiles": [ + "/Users/perrineqhn/.nuget/packages/coverlet.collector/6.0.2/coverlet.collector.6.0.2.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/microsoft.codecoverage/17.11.1/microsoft.codecoverage.17.11.1.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/microsoft.net.test.sdk/17.11.1/microsoft.net.test.sdk.17.11.1.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/microsoft.testplatform.objectmodel/17.11.1/microsoft.testplatform.objectmodel.17.11.1.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/microsoft.testplatform.testhost/17.11.1/microsoft.testplatform.testhost.17.11.1.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/newtonsoft.json/13.0.1/newtonsoft.json.13.0.1.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/system.reflection.metadata/1.6.0/system.reflection.metadata.1.6.0.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/xunit/2.9.2/xunit.2.9.2.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/xunit.abstractions/2.0.3/xunit.abstractions.2.0.3.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/xunit.analyzers/1.16.0/xunit.analyzers.1.16.0.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/xunit.assert/2.9.2/xunit.assert.2.9.2.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/xunit.core/2.9.2/xunit.core.2.9.2.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/xunit.extensibility.core/2.9.2/xunit.extensibility.core.2.9.2.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/xunit.extensibility.execution/2.9.2/xunit.extensibility.execution.2.9.2.nupkg.sha512", + "/Users/perrineqhn/.nuget/packages/xunit.runner.visualstudio/2.8.2/xunit.runner.visualstudio.2.8.2.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file diff --git a/Seance1/Program.cs b/Seance1/Program.cs deleted file mode 100644 index 653467e..0000000 --- a/Seance1/Program.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Affiche du texte dans le terminal -Console.WriteLine("Hello, World!"); - -// Assignement d'une variable -int demo = 2; - -// Litéraux et leurs préfixes -float f = 2.3f; -int hexa = 0xC8; -decimal d = 5.8m; diff --git a/Seance1/Readme.md b/Seance1/Readme.md deleted file mode 100644 index b58895d..0000000 --- a/Seance1/Readme.md +++ /dev/null @@ -1,11 +0,0 @@ -# Séance 1 - -On peut créé un nouveau projet d'exécutable console à l'aide de la commande : -`dotnet new console` - -Pour lancer le projet : -`dotnet run` - -## Notions - -Voir les commentaires du code. \ No newline at end of file diff --git a/Seance1/Seance1.csproj b/Seance1/Seance1.csproj deleted file mode 100644 index 206b89a..0000000 --- a/Seance1/Seance1.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - diff --git a/Seance2/Program.cs b/Seance2/Program.cs deleted file mode 100644 index dc9f605..0000000 --- a/Seance2/Program.cs +++ /dev/null @@ -1,65 +0,0 @@ -// See https://aka.ms/new-console-template for more information - -int test = 0; -Console.WriteLine(test); -DemoInt(test); -// la valeur de la variable n'est pas modifiée -Console.WriteLine(test); - - -// Démonstration qu'un struct est bien un type valeur -Info info = new Info(5); -Console.WriteLine(info.Age); -DemoStruct(info); -Console.WriteLine(info.Age); -DemoStruct_2(info); -Console.WriteLine(info.Age); - - -Sandwich monDejeuner = Sandwich.JambonBeurre; -Console.WriteLine(monDejeuner); -Console.WriteLine((int)monDejeuner); - - -StackOverflow(0); - - -// Fonction utilisée pour montrer le comportement d'un type valeur -void DemoInt(int test) -{ - test = 3; - Console.WriteLine(test); -} - -void DemoStruct(Info a) -{ - a = new Info(10); -} - -void DemoStruct_2(Info a) -{ - a.Age = 15; -} - -int StackOverflow(int a) -{ - return 1 + StackOverflow(a); -} - -// Déclaration d'une enum -enum Sandwich -{ - ThonMayo, - JambonBeurre, - PouletCurry, -} - -struct Info -{ - public int Age = 5; - - public Info(int age) - { - Age = age; - } -} \ No newline at end of file diff --git a/Seance2/Readme.md b/Seance2/Readme.md deleted file mode 100644 index 2653ee9..0000000 --- a/Seance2/Readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# Séance 2 - -Note : dans le mode simplifié utilisé pour ce projet, toutes les déclarations de fonctions, d'enum et struct sont placées à la fin du fichier. \ No newline at end of file diff --git a/Seance2/Seance2.csproj b/Seance2/Seance2.csproj deleted file mode 100644 index 2150e37..0000000 --- a/Seance2/Seance2.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - diff --git a/Seance5/Program.cs b/Seance5/Program.cs deleted file mode 100644 index 6a2f000..0000000 --- a/Seance5/Program.cs +++ /dev/null @@ -1,49 +0,0 @@ -Rectangle rectangle = new Rectangle(2, 4); -Console.WriteLine(rectangle.Surface); - -// on ne peut pas modifier la surface ! -//rectangle.Surface = 5; // erreur de compilation - -Console.WriteLine(rectangle.Longueur); -rectangle.Longueur = 10; - -struct Rectangle -{ - int longueur; - - // propriété avec back-field (longueur juste au-dessus) - public int Longueur - { - get - { - Console.WriteLine("get de Longueur appelé"); - - return longueur; - } - - set - { - Console.WriteLine("set de Longueur appelé"); - - longueur = value; - } - } - - // propriété auto-implémentée, en lecture seule - public int Largeur { get; private set; } - - // propriété calculée - public int Surface - { - get - { - return Longueur * Largeur; - } - } - - public Rectangle(int longueur, int largeur) - { - Longueur = longueur; - Largeur = largeur; - } -} \ No newline at end of file diff --git a/Seance5/Seance5.csproj b/Seance5/Seance5.csproj deleted file mode 100644 index f07518b..0000000 --- a/Seance5/Seance5.csproj +++ /dev/null @@ -1,11 +0,0 @@ - - - - Exe - net8.0 - enable - - disable - - - diff --git a/Seance8/Program.cs b/Seance8/Program.cs deleted file mode 100644 index 4d423d7..0000000 --- a/Seance8/Program.cs +++ /dev/null @@ -1,88 +0,0 @@ -using Pokedex; - -public class Program -{ - public static void Main(string[] args) - { - Program p = new Program(); - - int[] tableau = new int[] { 1, 2, 3, 4, 5 }; - - // Le type Func permet de représenter une méthode - // C'est un type générique qui prend pour arguments paramétrique (entre <>) la signature de la fonction a stocker - // Par exemple pour une méthode string AddDisplay(int a, int b) - // On a Func - // Les deux premiers arguments correspondent à ceux de la fonction et le dernier au type de retour - // ici on fournit la méthode DOubler de la classe Program - Func mathOp = p.Doubler; - - // Même principe que plus haut mais on déclare le contenu de la variable à partir d'une fonction anonyme - // Les fonctions anonymes sont aussi appelées lambda - // La syntaxte des lambda est abrégée : pas forcément de type des paramères, 'return' implicite - Func lambda = (int PARAM) => PARAM * 2; - - // Ici, le code de la fonction anonyme est plus long, on utilise donc un bloc (accolades) et un 'return' - Func funcPrint = i => - { - Console.Write(i + " "); - return i; - }; - - // La méthode Select prend une fonction qui a partir d'un élément d'un certain type renvoie un élément du même type - // ToArray est nécessaire pour demander l'exécution des Select et Where - // C'est un exemple d'utilisation de la technologie Linq - int[] tableauDoublé = tableau - .Select(lambda) - .Select(e => e * 2) - .Select(lambda) - .Select(funcPrint) - .ToArray(); - - Pokemon[] pokemons = new Pokemon[] { - new Pokemon(1, "Pikachu", Type.Normal), - null, - null, - new Pokemon(4, "Raichu", Type.Normal), - null - }; - - -Console.WriteLine(); - pokemons - //.Select(p => { Console.Write($"[{p}]"); return p; }) - .Where(p => p != null) - .Select(p => p.Name) - .Select(nom => { Console.Write($"[{nom}]"); return nom; }) - .ToArray() - ; - } - - int Doubler(int a) - { - return a * 2; - } - - void Demo() - { - int result_1 = CalculGenerique(2, 3, Addition); - Console.WriteLine($"add 2, 3 : {result_1}"); - - int result_2 = CalculGenerique(2, 3, Multiplication); - Console.WriteLine($"mult 2, 3 : {result_2}"); - } - - int CalculGenerique(int a, int b, Func operation) - { - return operation(a, b); - } - - int Addition(int a, int b) - { - return a + b; - } - - int Multiplication(int a, int b) - { - return a * b; - } -} diff --git a/Seance8/Seance8.csproj b/Seance8/Seance8.csproj deleted file mode 100644 index f2c3c06..0000000 --- a/Seance8/Seance8.csproj +++ /dev/null @@ -1,11 +0,0 @@ - - - Exe - net8.0 - enable - disable - - - - - \ No newline at end of file