public void GetLayout_WithXmlLayoutSchemaLog4jAttribute_ShouldReturnLayout2RawLayout() { // Arrange var sut = new LayoutAdapterProvider(); var attribute = new XmlLayoutSchemaLog4jAttribute(); // Act var result = sut.GetLayout(attribute); // Assert Assert.IsInstanceOfType(result, typeof(Layout2RawLayoutAdapter)); }
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); }