-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4023fa
commit 77e2a71
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
using FluentAssertions; | ||
using IdeaStudio.Website.Models; | ||
|
||
namespace IdeaStudio.Website.Tests; | ||
|
||
public class ExtensionsTests | ||
{ | ||
[Theory] | ||
[InlineData("Hello World", "hello-world")] | ||
[InlineData("Andrés Talavera's test", "andres-talavera-s-test")] | ||
[InlineData("C# is a .net language", "csharp-is-a-dotnet-language")] | ||
public void ToSeo_ShouldReturns_CorrectUrl(string url, string expected) | ||
{ | ||
// Arrange | ||
// Act | ||
var result = url.ToSeoUrl(); | ||
|
||
// Assert | ||
Assert.Equal(expected, result); | ||
result.Should().Be(expected); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters