Esempio n. 1
0
        public void CanTestInvalidMultiPatches()
        {
            var featureClassMock = new FeatureClassMock(1, "mock",
                                                        esriGeometryType.esriGeometryMultiPatch);

            var construction = new MultiPatchConstruction();

            construction.StartRing(0, 0, 0)
            .Add(5, 0, 0);
            IFeature row1 = featureClassMock.CreateFeature(construction.MultiPatch);

            construction = new MultiPatchConstruction();
            construction.StartFan(0, 0, 0)
            .Add(5, 0, 0);
            IFeature row2 = featureClassMock.CreateFeature(construction.MultiPatch);

            construction = new MultiPatchConstruction();
            construction.StartStrip(0, 0, 0)
            .Add(5, 0, 0);
            IFeature row3 = featureClassMock.CreateFeature(construction.MultiPatch);

            construction = new MultiPatchConstruction();
            construction.StartTris(0, 0, 0)
            .Add(5, 0, 0);
            IFeature row4 = featureClassMock.CreateFeature(construction.MultiPatch);

            var runner = new QaTestRunner(new QaSliverPolygon(featureClassMock, 50, 1000));

            runner.Execute(row1);
            runner.Execute(row2);
            runner.Execute(row3);
            runner.Execute(row4);
        }