public void GivenValidConfigurationWithStylesAndConfig_ReturnAttributes()
        {
            // Arrange
            var contentItem = JObject.Parse(validJsonWithStylesAndConfig);
            var service     = new GridSettingsAttributesService();

            // Act
            var attributes = service.GetAllAttributes(contentItem);

            // Assert
            Assert.AreEqual(3, attributes.Count);
        }
        public void GivenNoConfiguration_ReturnNoAttributes()
        {
            // Arrange
            var contentItem = new JObject();
            var service     = new GridSettingsAttributesService();

            // Act
            var attributes = service.GetAllAttributes(contentItem);

            // Assert
            Assert.IsEmpty(attributes);
        }
        public void GivenValidConfigurationWithOnlyStyles_ReturnOnlyStyleAttribute()
        {
            // Arrange
            var contentItem = JObject.Parse(validJsonWithOnlyStyles);
            var service     = new GridSettingsAttributesService();

            // Act
            var attributes = service.GetAllAttributes(contentItem);

            // Assert
            Assert.AreEqual(1, attributes.Count);
            Assert.IsTrue(attributes.ContainsKey("style"));
        }