|
|
|
@ -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<Bateau>));
|
|
|
|
@ -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<Ile>));
|
|
|
|
|