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); }
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); }
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); }