public void BorderStyleCollection_Add_ExistingBorder_OverritesItem()
        {
            // Arrange
            var list = new BorderStyleCollection();

            list.Add(BorderStylePosition.Bottom, "#000");

            // Act
            list.Add(BorderStylePosition.Bottom, "#fff");

            // Assert
            Assert.AreEqual(1, list.Count);
            Assert.AreEqual("#fff", list[BorderStylePosition.Bottom].Color);
        }
        public void BorderStyleCollection_Remove_ItemNotFound_ReturnsFalse()
        {
            // Arrange
            var list = new BorderStyleCollection();

            list.Add(BorderStylePosition.Bottom, "#000");

            // Act
            var value = list.Remove(BorderStylePosition.Top);

            // Assert
            Assert.IsFalse(value);
        }
        public void BorderStyleCollection_Remove()
        {
            // Arrange
            var list = new BorderStyleCollection();

            list.Add(BorderStylePosition.Bottom, "#000");

            // Act
            var value = list.Remove(BorderStylePosition.Bottom);

            // Assert
            Assert.IsTrue(value);
        }
        public void BorderStyleCollection_Add_WithParams_Color()
        {
            // Arrange
            var color = "#fff";

            var list = new BorderStyleCollection();

            // Act
            list.Add(color);

            // Assert
            Assert.AreEqual(4, list.Count);
        }
        public void BorderStyleCollection_Add_WithParams_Position()
        {
            // Arrange
            var position = BorderStylePosition.Left;

            var list = new BorderStyleCollection();

            // Act
            list.Add(position, "#000");

            // Assert
            Assert.AreEqual(1, list.Count);
            Assert.AreEqual(position, list[BorderStylePosition.Left].Position);
        }
        public void BorderStyleCollection_Add_WithParams_Color_LineStyle()
        {
            // Arrange
            var color     = "#fff";
            var lineStyle = BorderLineStyle.SlantDashDot;

            var list = new BorderStyleCollection();

            // Act
            list.Add(color, lineStyle);

            // Assert
            Assert.AreEqual(4, list.Count);
        }
        public void BorderStyleCollection_Add_WithParams_Position_Color_LineStyle()
        {
            // Arrange
            var position  = BorderStylePosition.Left;
            var color     = "#fff";
            var lineStyle = BorderLineStyle.SlantDashDot;

            var list = new BorderStyleCollection();

            // Act
            list.Add(position, color, lineStyle);

            // Assert
            Assert.AreEqual(1, list.Count);
            Assert.AreEqual(position, list[BorderStylePosition.Left].Position);
            Assert.AreEqual(color, list[BorderStylePosition.Left].Color);
            Assert.AreEqual(lineStyle, list[BorderStylePosition.Left].LineStyle);
        }