public void CreateRightToLeftShadow_StartAndEndPointsYCoordinateStaysAtMidpoint()
        {
            var shadowCreator = new ShadowLayerCreator();

            var layer = shadowCreator.CreateRightToLeftShadow();

            Assert.AreEqual(0.5f, layer.StartPoint.Y);
            Assert.AreEqual(0.5f, layer.EndPoint.Y);
        }
        public void CreateRightToLeftShadow_SecondColorIsBlackWithAlpha()
        {
            var shadowCreator = new ShadowLayerCreator { Alpha = 0.4f };

            var layer = shadowCreator.CreateRightToLeftShadow();

            AssertColorIsBlack(layer.Colors[1]);
            Assert.AreEqual(0.4f, layer.Colors[1].Alpha);
        }
        public void CreateRightToLeftShadow_StartAndEndPointsXCoordinateSpan()
        {
            var shadowCreator = new ShadowLayerCreator();

            var layer = shadowCreator.CreateRightToLeftShadow();

            Assert.AreEqual(0, layer.StartPoint.X);
            Assert.AreEqual(1, layer.EndPoint.X);
        }
        public void CreateRightToLeftShadow_FirstColorHasZeroAlpha()
        {
            var shadowCreator = new ShadowLayerCreator();

            var layer = shadowCreator.CreateRightToLeftShadow();

            Assert.AreEqual(0f, layer.Colors[0].Alpha);
        }