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

            var layer = shadowCreator.CreateBottomToTopShadow();

            Assert.AreEqual(0f, layer.Colors[0].Alpha);
        }
        public void CreateBottomToTopShadow_StartAndEndPointsYCoordinateSpan()
        {
            var shadowCreator = new ShadowLayerCreator();

            var layer = shadowCreator.CreateBottomToTopShadow();

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

            var layer = shadowCreator.CreateBottomToTopShadow();

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

            var layer = shadowCreator.CreateBottomToTopShadow();

            AssertColorIsBlack(layer.Colors[1]);
            Assert.AreEqual(0.4f, layer.Colors[1].Alpha);
        }