public void ShouldReturnBottomHorizontalLine() { var board = GameSettingsLoader.Load( @" .▲. XXX "); var type = WallAnalyzer.GetWallType(board.Walls, (1, 1), board.Width, board.Height); type.Should().Be(WallType.HorizontalLine); }
public void ShouldAnalyzeTopRightCornerAsTopRightArc() { var board = GameSettingsLoader.Load( @" XX ▲X "); var type = WallAnalyzer.GetWallType(board.Walls, (1, 0), board.Width, board.Height); type.Should().Be(WallType.TopRightArc); }
public void ShouldReturnRightVerticalLine() { var board = GameSettingsLoader.Load( @" ..X ..X .▲X "); var type = WallAnalyzer.GetWallType(board.Walls, (2, 1), board.Width, board.Height); type.Should().Be(WallType.VerticalLine); }
public void ShouldAnalyzeTopLeftEdgeAsTopLeftArc() { var board = GameSettingsLoader.Load( @" ... .XX ▲X "); var type = WallAnalyzer.GetWallType(board.Walls, (1, 1), board.Width, board.Height); type.Should().Be(WallType.TopLeftArc); }
public void ShouldAnalyzeRightHorizontalLineEdgeAsHorizontalLine() { var board = GameSettingsLoader.Load( @" XX ▲ "); var type = WallAnalyzer.GetWallType(board.Walls, (1, 1), board.Width, board.Height); type.Should().Be(WallType.HorizontalLine); }
public void ShouldAnalyzeBottomRightCorner1AsBottomRightArc() { var board = GameSettingsLoader.Load( @" ▲XX XXX XXX "); var type = WallAnalyzer.GetWallType(board.Walls, (1, 1), board.Width, board.Height); type.Should().Be(WallType.BottomRightArc); }
public void ShouldAnalyzeVerticalLine4AsVerticalLine() { var board = GameSettingsLoader.Load( @" XX. XX. XX▲"); var type = WallAnalyzer.GetWallType(board.Walls, (1, 1), board.Width, board.Height); type.Should().Be(WallType.VerticalLine); }
public void ShouldAnalyzeBottomLeftEdgeAsBottomLeftArc() { var board = GameSettingsLoader.Load( @" .X .XX .▲."); var type = WallAnalyzer.GetWallType(board.Walls, (1, 1), board.Width, board.Height); type.Should().Be(WallType.BottomLeftArc); }