Beispiel #1
0
        public void GetVerticesInOddFlowerQPLayer_Works(int numVerticesInCenterPolygon, int layerIndex, int firstVertex, params int[] expectedVertices)
        {
            var actualVertices = UsefulQPs.GetVerticesInOddFlowerQPLayer(numVerticesInCenterPolygon, layerIndex, firstVertex);

            Assert.That(actualVertices, Is.EqualTo(expectedVertices));
        }
Beispiel #2
0
        public void GetVerticesInOddFlowerQPLayer_ThrowsOnBadLayerIndex(int layerIndex)
        {
            int numVerticesInCenterPolygon = 5;

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