From 3b001a373ab2da0bb5b34a811f14a6048e7423b8 Mon Sep 17 00:00:00 2001 From: Yoan Date: Sun, 11 Jun 2023 00:54:45 +0200 Subject: [PATCH] Correction bug tests unitaire --- Sources/TestProject1/XMLSerializerTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/TestProject1/XMLSerializerTests.cs b/Sources/TestProject1/XMLSerializerTests.cs index ed154da..f504236 100644 --- a/Sources/TestProject1/XMLSerializerTests.cs +++ b/Sources/TestProject1/XMLSerializerTests.cs @@ -252,7 +252,7 @@ namespace TestProject1 serializer.SetBateau(listeBateau); - string xmlFilePath = Path.Combine(serializer.Chemin, "bateaux.xml"); + string xmlFilePath = Path.Combine(serializer.Chemin, "bateau.xml"); Assert.True(File.Exists(xmlFilePath)); using (Stream stream = File.OpenRead(xmlFilePath)) @@ -277,7 +277,7 @@ namespace TestProject1 obj1, obj2, }; - string xmlFilePath = Path.Combine(serializer.Chemin, "bateaux.xml"); + string xmlFilePath = Path.Combine(serializer.Chemin, "bateau.xml"); using (Stream stream = File.Create(xmlFilePath)) { var xmlSerializer = new DataContractSerializer(typeof(List)); @@ -305,7 +305,7 @@ namespace TestProject1 serializer.SetIle(listeIle); - string xmlFilePath = Path.Combine(serializer.Chemin, "iles.xml"); + string xmlFilePath = Path.Combine(serializer.Chemin, "ile.xml"); Assert.True(File.Exists(xmlFilePath)); using (Stream stream = File.OpenRead(xmlFilePath)) @@ -330,7 +330,7 @@ namespace TestProject1 obj1, obj2, }; - string xmlFilePath = Path.Combine(serializer.Chemin, "iles.xml"); + string xmlFilePath = Path.Combine(serializer.Chemin, "ile.xml"); using (Stream stream = File.Create(xmlFilePath)) { var xmlSerializer = new DataContractSerializer(typeof(List));