public void ConfigureLayout_WithAttribute_ShouldSetLocationInfo() { // Arrange var sut = new XmlLayoutSchemaLog4jAdapter(); var attribute = new XmlLayoutSchemaLog4jAttribute() { LocationInfo = true }; var layout = new XmlLayoutSchemaLog4j(); // Act sut.ConfigureLayout(layout, attribute); // Assert Assert.AreEqual(attribute.LocationInfo, layout.LocationInfo); }
public void ConfigureLayout_WithAttribute_ShouldSetVersion() { // Arrange var sut = new XmlLayoutSchemaLog4jAdapter(); var attribute = new XmlLayoutSchemaLog4jAttribute() { Version = "1.2" }; var layout = new XmlLayoutSchemaLog4j(); // Act sut.ConfigureLayout(layout, attribute); // Assert Assert.AreEqual(attribute.Version, layout.Version); }