Skip to content

Commit

Permalink
bugfix: added test for textWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikaLos committed Dec 5, 2024
1 parent a08e315 commit a9e0b1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions GsaGHTests/Helpers/GH/TextWrapperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
namespace GsaGHTests.Helpers {
[Collection("GrasshopperFixture collection")]
public class TextWrapperTests {
[Fact]
public void WrapTextShouldReturnEmptyWhenInputTextIsIsNullOrWhiteSpace() {
Assert.Empty(TextWrapper.WrapText(string.Empty, 1, 1));
Assert.Empty(TextWrapper.WrapText(null, 1, 1));
Assert.Empty(TextWrapper.WrapText("\n", 1, 1));
Assert.Empty(TextWrapper.WrapText(" ", 1, 1));
}

[Fact]
public void WrapText_ShouldWrapTextCorrectly() {
Expand Down

0 comments on commit a9e0b1b

Please sign in to comment.