Пример #1
0
        private static void VerifyShapeType(string givenSubPath, string givenFileName, string expectedShapeType)
        {
            var harvester        = new BasicShapeTemplateHarvester();
            var harvestShapeHits = harvester.HarvestShape(new HarvestShapeInfo {
                SubPath = givenSubPath, FileName = givenFileName
            });

            Assert.Single(harvestShapeHits);
            Assert.Equal(expectedShapeType, harvestShapeHits.Single().ShapeType, ignoreCase: true);
        }
Пример #2
0
        private static void VerifyShapeType(string givenSubPath, string givenFileName, string expectedShapeType)
        {
            var harvester        = new BasicShapeTemplateHarvester();
            var harvestShapeHits = harvester.HarvestShape(new HarvestShapeInfo {
                SubPath = givenSubPath, FileName = givenFileName
            });

            Assert.That(harvestShapeHits.Count(), Is.EqualTo(1));
            Assert.That(harvestShapeHits.Single().ShapeType, Is.EqualTo(expectedShapeType).IgnoreCase);
        }