private void Step_08_SerializeCollection_Generated()
{
using (TransactionManager tm = CreateTransaction())
{
string fileName = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "temp_ProductVendorCollection.xml");
mock = CreateMockInstance(tm);
TList<ProductVendor> mockCollection = new TList<ProductVendor>();
mockCollection.Add(mock);
EntityHelper.SerializeXml(mockCollection, fileName);
Assert.IsTrue(System.IO.File.Exists(fileName), "Serialized mock collection not found");
System.Console.WriteLine("TList<ProductVendor> correctly serialized to a temporary file.");
}
}