Ejemplo n.º 1
0
 public static void CompareXml(CremaDataSet dataSet1, CremaDataSet dataSet2)
 {
     try
     {
         Assert.AreEqual(dataSet1.GetXml(), dataSet2.GetXml(), "Xml");
     }
     catch
     {
         File.WriteAllText(Path.Combine(Directory.GetCurrentDirectory(), "dataSet1" + CremaSchema.XmlExtension), dataSet1.GetXml());
         File.WriteAllText(Path.Combine(Directory.GetCurrentDirectory(), "dataSet2" + CremaSchema.XmlExtension), dataSet2.GetXml());
         throw;
     }
 }