public void CanGetInnerPartIndexesFirstRingRing() { var construction = new MultiPatchConstruction(); construction.StartFirstRing(5, 4, 0).Add(-5, 4, 0).Add(-5, -4, 0).Add(5, -4, 0) .StartRing(4, 3, 0).Add(-4, 3, 0).Add(-4, -3, 0).Add(4, -3, 0); IMultiPatch multiPatch = construction.MultiPatch; ((IGeometry)multiPatch).SpatialReference = SpatialReferenceUtils.CreateSpatialReference( (int)esriSRProjCS2Type.esriSRProjCS_CH1903Plus_LV95); IIndexedMultiPatch indexedMultiPatch = QaGeometryUtils.CreateIndexedMultiPatch(multiPatch); List <int> innerPartIndexes = MultiPatchUtils.GetInnerRingPartIndexes(indexedMultiPatch, 0); Assert.AreEqual(1, innerPartIndexes.Count); Assert.AreEqual(1, innerPartIndexes[0]); }