You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
632 B
24 lines
632 B
using System.Globalization;
|
|
using System.IO;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using Xunit;
|
|
|
|
namespace Jellyfin.Extensions.Tests;
|
|
|
|
public static class FormattingStreamWriterTests
|
|
{
|
|
[Fact]
|
|
public static void Shuffle_Valid_Correct()
|
|
{
|
|
Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE", false);
|
|
using (var ms = new MemoryStream())
|
|
using (var txt = new FormattingStreamWriter(ms, CultureInfo.InvariantCulture))
|
|
{
|
|
txt.Write("{0}", 3.14159);
|
|
txt.Close();
|
|
Assert.Equal("3.14159", Encoding.UTF8.GetString(ms.ToArray()));
|
|
}
|
|
}
|
|
}
|