Пример #1
0
        public void TestRadiusClone()
        {
            const string radiusStr = "10:20.5:$v:40";
            var          radius    = new Radius(10, 20.5f, "$v", 40);
            var          cloned    = radius.Clone();

            Assert.AreEqual(radiusStr, radius.ToString());
            Assert.AreEqual(radiusStr, cloned.ToString());
        }
Пример #2
0
        public object Clone()
        {
            return(new CSSBorder
            {
                Left = Left.Clone() as CSSNumber,
                Right = Right.Clone() as CSSNumber,
                Top = Top.Clone() as CSSNumber,
                Bottom = Bottom.Clone() as CSSNumber,

                Type = Type,
                Radius = Radius.Clone() as CSSNumber,
                Color = Color.Clone() as CSSColor
            });
        }