public void Render_MismatchingXYCoordinates_RendersCellAsExpected(ElementType elementType, char expected) { var builder = new RendererBuilder(); var sut = builder.WithCellAt(4, 3, elementType) .Build(); sut.Render(NoRenderables()); string leftPadding = " "; string rightPadding = " "; builder.AssertRowEmpty(0); builder.AssertRowEmpty(1); builder.OutputLines[2].Should().Be(leftPadding + expected + rightPadding); builder.AssertRowEmpty(3); }
public void Render_RenderableOverlaysMap_RendersMap(ElementType mapElementType, char representation) { var builder = new RendererBuilder(); var sut = builder.WithCellAt(3, 2, mapElementType) .Build(); sut.Render(new[] { CreateRenderable(3, 2, '§', 0), }); var leftPassageWay = " "; var rightPassageWay = " "; builder.OutputLines[1].Should().Be(leftPassageWay + representation + rightPassageWay); }