From 77e2a7110537a03925ccc56566cee318adad414f Mon Sep 17 00:00:00 2001 From: Andres Talavera Date: Wed, 24 Jul 2024 00:55:29 +0200 Subject: [PATCH] Fix tests --- IdeaStudio.Website.Tests/ExtensionsTests.cs | 6 +++++- IdeaStudio.Website.Tests/IdeaStudio.Website.Tests.csproj | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/IdeaStudio.Website.Tests/ExtensionsTests.cs b/IdeaStudio.Website.Tests/ExtensionsTests.cs index cbfecda..d5bed55 100644 --- a/IdeaStudio.Website.Tests/ExtensionsTests.cs +++ b/IdeaStudio.Website.Tests/ExtensionsTests.cs @@ -1,3 +1,6 @@ +using FluentAssertions; +using IdeaStudio.Website.Models; + namespace IdeaStudio.Website.Tests; public class ExtensionsTests @@ -5,6 +8,7 @@ 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 @@ -12,6 +16,6 @@ public void ToSeo_ShouldReturns_CorrectUrl(string url, string expected) var result = url.ToSeoUrl(); // Assert - Assert.Equal(expected, result); + result.Should().Be(expected); } } \ No newline at end of file diff --git a/IdeaStudio.Website.Tests/IdeaStudio.Website.Tests.csproj b/IdeaStudio.Website.Tests/IdeaStudio.Website.Tests.csproj index 6daa105..25eb998 100644 --- a/IdeaStudio.Website.Tests/IdeaStudio.Website.Tests.csproj +++ b/IdeaStudio.Website.Tests/IdeaStudio.Website.Tests.csproj @@ -22,4 +22,8 @@ + + + +