Example #1
0
        public void ConfigureLayout_WithAttribute_ShouldSetLocationInfo()
        {
            // Arrange
            var sut       = new XmlLayoutAdapter();
            var attribute = new XmlLayoutAttribute()
            {
                LocationInfo = true
            };
            var layout = new XmlLayout();

            // Act
            sut.ConfigureLayout(layout, attribute);

            // Assert
            Assert.AreEqual(attribute.LocationInfo, layout.LocationInfo);
        }
Example #2
0
        public void ConfigureLayout_WithAttribute_ShouldSetBase64EncodeProperties()
        {
            // Arrange
            var sut       = new XmlLayoutAdapter();
            var attribute = new XmlLayoutAttribute()
            {
                Base64EncodeProperties = true
            };
            var layout = new XmlLayout();

            // Act
            sut.ConfigureLayout(layout, attribute);

            // Assert
            Assert.AreEqual(attribute.Base64EncodeProperties, layout.Base64EncodeProperties);
        }
Example #3
0
        public void ConfigureLayout_WithAttribute_ShouldSetPrefix()
        {
            // Arrange
            var sut       = new XmlLayoutAdapter();
            var attribute = new XmlLayoutAttribute()
            {
                Prefix = "Test"
            };
            var layout = new XmlLayout();

            // Act
            sut.ConfigureLayout(layout, attribute);

            // Assert
            Assert.AreEqual(attribute.Prefix, layout.Prefix);
        }