mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
24 lines
690 B
C#
24 lines
690 B
C#
using SabreTools.IO;
|
|
using Xunit;
|
|
|
|
namespace SabreTools.Test.IO
|
|
{
|
|
public class IOExtensionsTests
|
|
{
|
|
[Theory]
|
|
[InlineData(null, null)]
|
|
[InlineData("", null)]
|
|
[InlineData(" ", null)]
|
|
[InlineData("no-extension", null)]
|
|
[InlineData("NO-EXTENSION", null)]
|
|
[InlineData("no-extension.", null)]
|
|
[InlineData("NO-EXTENSION.", null)]
|
|
[InlineData("filename.ext", "ext")]
|
|
[InlineData("FILENAME.EXT", "ext")]
|
|
public void NormalizedExtensionTest(string path, string expected)
|
|
{
|
|
string actual = path.GetNormalizedExtension();
|
|
Assert.Equal(expected, actual);
|
|
}
|
|
}
|
|
} |