Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrestalavera committed Jul 23, 2024
1 parent f4023fa commit 77e2a71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion IdeaStudio.Website.Tests/ExtensionsTests.cs
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);
}
}
4 changes: 4 additions & 0 deletions IdeaStudio.Website.Tests/IdeaStudio.Website.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@
<Using Include="Xunit" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\IdeaStudio.Website\IdeaStudio.Website.csproj" />
</ItemGroup>

</Project>

0 comments on commit 77e2a71

Please sign in to comment.