Created
May 28, 2017 13:26
-
-
Save selcukusta/abd6881a4eff63f82a54d6d555f89331 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| using NetCoreTestCI.Framework; | |
| using Xunit; | |
| namespace NetCoreTestCI.Test | |
| { | |
| public class TextTest | |
| { | |
| [Theory] | |
| [InlineData("Hello .Net Core!", "hello-net-core")] | |
| [InlineData("Türkçe karakterler çok şanssız!", "turkce-karakterler-cok-sanssiz")] | |
| [InlineData("Ahoj světe.", "ahoj-svete")] | |
| public void TestSlugify(string actual, string expected) | |
| { | |
| var result = Text.Slugify(actual); | |
| Assert.Equal<string>(expected, result); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment