Esempio n. 1
0
        private static void EmbeddedDocumentEquiv(IonSequence sequence, bool expected, int i)
        {
            foreach (var doc1 in sequence)
            {
                Console.WriteLine(i);
                Assert.IsTrue(doc1 is IonString);
                var dg1 = IonLoader.Default.Load(((IonString)doc1).StringValue);
                foreach (var doc2 in sequence)
                {
                    if (doc1 == doc2)
                    {
                        continue;
                    }

                    var dg2 = IonLoader.Default.Load(((IonString)doc2).StringValue);
                    var eq  = AssertDatagramEquivalent(dg1, dg2);
                    if (expected != eq)
                    {
                        Console.WriteLine(((IonString)doc1).StringValue);
                        Console.WriteLine(((IonString)doc2).StringValue);
                    }

                    Assert.AreEqual(expected, eq);
                }
            }
        }
Esempio n. 2
0
 private static void AssertEmbeddedDocument(IonSequence sequence)
 {
     foreach (var doc1 in sequence)
     {
         Assert.IsTrue(doc1 is IonString);
         var dg1 = IonLoader.Default.Load(((IonString)doc1).StringValue);
         foreach (var doc2 in sequence)
         {
             var dg2 = IonLoader.Default.Load(((IonString)doc2).StringValue);
             AssertDatagramEquivalent(dg1, dg2);
         }
     }
 }