Beispiel #1
0
        public void CreateParallelBrush(string ls, double acc, double tot, string esp, string eep)
        {
            var stops  = new GradientStopCollection();
            var line   = ls.AsLine();
            var actual = GradientPath.CreateParallelBrush(stops, acc, tot, line);

            Assert.AreEqual(esp, actual.StartPoint.ToString("F0"));
            Assert.AreEqual(eep, actual.EndPoint.ToString("F0"));
        }
Beispiel #2
0
        public void CreatePerpendicularBrush(string ls, double width, string esp, string eep)
        {
            var stops  = new GradientStopCollection();
            var line   = ls.AsLine();
            var actual = GradientPath.CreatePerpendicularBrush(stops, 10, line);

            Assert.AreEqual(Point.Parse(esp), actual.StartPoint);
            Assert.AreEqual(Point.Parse(eep), actual.EndPoint);
        }