Skip to content

Commit

Permalink
Refactor CategoryNameTests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinKanarDev authored Apr 7, 2024
1 parent fc19e70 commit df71602
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void Constructor_ForValidValue_ShouldNotThrow(string validValue)
public void Constructor_WhenValueIsIncorrectLength_ShouldThrowValueIncorrectLengthException(string invalidValue)
{
// Act
Action act = () => new CategoryName(invalidValue);
var act = () => new CategoryName(invalidValue);

// Assert
act.Should().Throw<ValueIncorrectLengthException>();
Expand All @@ -55,7 +55,7 @@ public void ImplicitConversion_ToString_ShouldReturnCorrectStringValue()
var categoryName = new CategoryName("Programming");

// Act
string result = categoryName;
var result = categoryName;

// Assert
result.Should().Be("Programming");
Expand Down

0 comments on commit df71602

Please sign in to comment.