public void StyleCore_Equals_ReturnsTrue()
        {
            var a = new StyleCore
            {
                BackgroundColor = "#f0f0f0f0",
                BorderColor = "#012345678",
                BorderThickness = 1.0,
                FontFamily = "BleBle",
                FontSize = 11,
                FontStyle = FontStyle.Italic,
                FontWeight = FontWeight.UltraBold,
                TextAlignment = TextAlignment.Justify,
                TextDecoration = TextDecoration.Strikethrough,
                TextColor = "#ffff0000",
                TextWrapping = true
            };

            var b = new StyleCore
            {
                BackgroundColor = "#f0f0f0f0",
                BorderColor = "#012345678",
                BorderThickness = 1.0,
                FontFamily = "BleBle",
                FontSize = 11,
                FontStyle = FontStyle.Italic,
                FontWeight = FontWeight.UltraBold,
                TextAlignment = TextAlignment.Justify,
                TextDecoration = TextDecoration.Strikethrough,
                TextColor = "#ffff0000",
                TextWrapping = true
            };

            Debug.Assert(a.Equals(b));
        }
        public void StyleCore_DefaultConstructor_SetsDefaultValues()
        {
            var s = new StyleCore();

            Debug.Assert(!s.OneThicknessForAll);
            Debug.Assert(!s.TextWrapping);
            Debug.Assert(s.BackgroundColor == "#00ffffff");
            Debug.Assert(s.BorderColor == "#00ffffff");
            Debug.Assert(s.TextColor == "#ff000000");
            Debug.Assert(s.TextDecoration == TextDecoration.None);
            Debug.Assert(s.TextAlignment == TextAlignment.Left);
            Debug.Assert(s.FontWeight == FontWeight.Regular);
            Debug.Assert(s.FontStyle == FontStyle.Normal);
        }
        public void StyleCore_CopyingConstructor_CopiesGood()
        {
            var prototype = new StyleCore
            {
                BackgroundColor = "#f0f0f0f0",
                BorderColor = "#012345678",
                BorderThickness = 1.0,
                FontFamily = "BleBle",
                FontSize = 11,
                FontStyle = FontStyle.Italic,
                FontWeight = FontWeight.UltraBold,
                TextAlignment = TextAlignment.Justify,
                TextDecoration = TextDecoration.Strikethrough,
                TextColor = "#ffff0000",
                TextWrapping = true
            };

            var copiedStyle = new StyleCore(prototype);
            Debug.Assert(copiedStyle.Equals(prototype));
        }