Add unit test for gettext parser.
This commit is contained in:
18
Claunia.Localization.Test/gettext/Test.cs
Normal file
18
Claunia.Localization.Test/gettext/Test.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Claunia.Localization.Test.gettext
|
||||
{
|
||||
[TestFixture]
|
||||
public sealed class Test
|
||||
{
|
||||
[Test]
|
||||
public void Parse()
|
||||
{
|
||||
var testPath = Path.Combine(".", "gettext","es_ES.po");
|
||||
|
||||
var localization = Claunia.Localization.Parsers.GetText.Parse(testPath, Encoding.GetEncoding("iso8859-1"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user