Skip to content

Commit

Permalink
bugfx: changes namespace for contour tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikaLos committed Dec 4, 2024
1 parent 71a87ef commit b942f3f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
6 changes: 3 additions & 3 deletions GsaGH/Helpers/GH/Legend/ContourLegend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
namespace GsaGH.Helpers.GH {

internal class ContourLegend : IContourLegend {
private readonly IContourLegendConfiguration _configuration;

private const int DefaultTextHeight = 12;
private const int DefaultBitmapWidth = 110;
private readonly IContourLegendConfiguration _configuration;
private bool _isDrawLegendCalled = false;
private int _leftBitmapEdge;

private int _textHeight = DefaultTextHeight;
private int _leftBitmapEdge;
private bool _isDrawLegendCalled = false;

public ContourLegend(IContourLegendConfiguration configuration) {
_configuration = configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace GsaGHTests.Helpers.GH.Legend {
namespace GsaGHTests.Helpers {
[Collection("GrasshopperFixture collection")]
public class ContourLegendConfigurationTests {
private readonly ContourLegendConfiguration legendConfiguration;
Expand Down
22 changes: 22 additions & 0 deletions GsaGHTests/Helpers/GH/Legend/ContourLegendTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using GsaGH.Helpers;
using GsaGH.Helpers.GH;

using Moq;

using Xunit;

namespace GsaGHTests.Helpers {
public class ContourLegendTests {
[Fact]
public void Constructor_InitializesConfiguration() {
// Arrange
var mockConfiguration = new Mock<IContourLegendConfiguration>();

// Act
var legend = new ContourLegend(mockConfiguration.Object);

// Assert
Assert.NotNull(legend);
}
}
}
2 changes: 1 addition & 1 deletion GsaGHTests/Helpers/GH/Legend/LegendMenuBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

using Xunit;

namespace GsaGH.Tests.Helpers {
namespace GsaGHTests.Helpers {
[Collection("GrasshopperFixture collection")]
public class LegendMenuBuilderTests {
private Mock<Contour1dResults> _componentMock;
Expand Down

0 comments on commit b942f3f

Please sign in to comment.