private void assertRelation(
     S2Loop a, S2Loop b, int containsOrCrosses, bool intersects, bool nestable)
 {
     assertEquals(a.Contains(b), containsOrCrosses == 1);
     assertEquals(a.Intersects(b), intersects);
     if (nestable)
     {
         assertEquals(a.ContainsNested(b), a.Contains(b));
     }
     if (containsOrCrosses >= -1)
     {
         assertEquals(a.ContainsOrCrosses(b), containsOrCrosses);
     }
 }
 private void assertRelation(
     S2Loop a, S2Loop b, int containsOrCrosses, bool intersects, bool nestable)
 {
     assertEquals(a.Contains(b), containsOrCrosses == 1);
     assertEquals(a.Intersects(b), intersects);
     if (nestable)
     {
         assertEquals(a.ContainsNested(b), a.Contains(b));
     }
     if (containsOrCrosses >= -1)
     {
         assertEquals(a.ContainsOrCrosses(b), containsOrCrosses);
     }
 }