-
Notifications
You must be signed in to change notification settings - Fork 3
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
88fd723
commit d3eab79
Showing
2 changed files
with
38 additions
and
2 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Nhl.Api.Models.Enumerations.Player; | ||
|
||
namespace Nhl.Api.Tests; | ||
|
||
[TestClass] | ||
public class StringTests | ||
{ | ||
|
||
[TestMethod] | ||
[DataRow("ŠĐĆŽćžšđ", "SDCZczsd")] | ||
[DataRow("àndre", "andre")] | ||
|
||
public void ReplaceNonAsciiWithAscii_Returns_Correct_Ascii_String(string input, string expected) | ||
{ | ||
var actual = PlayerEnumFileGeneratorHelper.ReplaceNonAsciiWithAscii(input); | ||
|
||
Assert.AreEqual(expected, actual); | ||
} | ||
} |