示例#1
0
        public void GetVerticesInEvenFlowerType1QPLayer_Works(int numVerticesInCenterPolygon, int layerIndex, int firstVertex, params int[] expectedVertices)
        {
            var actualVertices = UsefulQPs.GetVerticesInEvenFlowerType1QPLayer(numVerticesInCenterPolygon, layerIndex, firstVertex);

            Assert.That(actualVertices, Is.EqualTo(expectedVertices));
        }
示例#2
0
        public void GetVerticesInEvenFlowerType1QPLayer_ThrowsOnBadLayerIndex(int layerIndex)
        {
            int numVerticesInCenterPolygon = 6;

            Assert.That(() => UsefulQPs.GetVerticesInEvenFlowerType1QPLayer(numVerticesInCenterPolygon, layerIndex), Throws.InstanceOf <ArgumentOutOfRangeException>());
        }