Example #1
0
        public void GetVerticesInEvenFlowerType2QPLayer_Works(int numVerticesInCenterPolygon, int layerIndex, int firstVertex, params int[] expectedVertices)
        {
            var actualVertices = UsefulQPs.GetVerticesInEvenFlowerType2QPLayer(numVerticesInCenterPolygon, layerIndex, firstVertex);

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

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