Skip to content

Commit

Permalink
Update EventValidatorTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
bilimig committed Jun 23, 2024
1 parent 46c84db commit 5893f45
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void Validate_WhenStartAtIsAfterEndAt_ShouldReturnFalse()
}

[TestMethod]
public void Validate_WhenSlugIsEmpty_ShouldReturnFalse()
public void Validate_WhenSlugIsEmpty_ShouldReturnTrue()
{
var eventDto = new EventDto
{
Expand All @@ -128,10 +128,7 @@ public void Validate_WhenSlugIsEmpty_ShouldReturnFalse()

var result = _validator.Validate(eventDto);

Assert.IsFalse(result.IsValid);
Assert.IsTrue(result.Errors.Exists(
e => e.ErrorMessage == "'Slug' must not be empty."
));
Assert.IsTrue(result.IsValid);
}

[TestMethod]
Expand Down

0 comments on commit 5893f45

Please sign in to comment.