Skip to content

Commit

Permalink
refactor: extra test for contourLegend
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikaLos committed Dec 13, 2024
1 parent 0f78424 commit 1f6a6e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion GsaGHTests/Helpers/GH/Legend/ContourLegendTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Drawing;

using Grasshopper.Kernel;
Expand Down Expand Up @@ -33,5 +34,10 @@ public void ShouldNotDrawILegendIsNotDisplayable() {
new List<(int startY, int endY, Color gradientColor)>());
Assert.True(legend.IsInvalidConfiguration);
}

[Fact]
public void WhenBitmapWidthEqualZeroThenThrowError() {
Assert.Throws<ArgumentOutOfRangeException>(() => new ContourLegend(ContourLegendConfiguration.GetDefault(), 0));
}
}
}

0 comments on commit 1f6a6e6

Please sign in to comment.