using System.Globalization;
using Xunit;

namespace ByteSizeLib.Tests.BinaryByteSizeTests
{
    public class ToBinaryStringMethod
    {

        [Fact]
        public void ReturnsDefaultRepresenation()
        {
            // Arrange
            var b = ByteSize.FromKiloBytes(10);

            // Act
            var result = b.ToBinaryString(CultureInfo.InvariantCulture);

            // Assert
            Assert.Equal("9.77 KiB", result);
        }

        [Fact]
        public void ReturnsDefaultRepresenationCurrentCulture()
        {
            // Arrange
            var b = ByteSize.FromKiloBytes(10);
            var s = CultureInfo.CurrentCulture.NumberFormat.CurrencyDecimalSeparator;

            // Act
            var result = b.ToBinaryString(CultureInfo.CurrentCulture);

            // Assert
            Assert.Equal($"9{s}77 KiB", result);
        }
	}
}

using System.Globalization;
using Xunit;

namespace ByteSizeLib.Tests.BinaryByteSizeTests
{
    public class ToBinaryStringMethod
    {

        [Fact]
        public void ReturnsDefaultRepresenation()
        {
            // Arrange
            var b = ByteSize.FromKiloBytes(10);

            // Act
            var result = b.ToBinaryString(CultureInfo.InvariantCulture);

            // Assert
            Assert.Equal("9.77 KiB", result);
        }

        [Fact]
        public void ReturnsDefaultRepresenationCurrentCulture()
        {
            // Arrange
            var b = ByteSize.FromKiloBytes(10);
            var s = CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator;

            // Act
            var result = b.ToBinaryString(CultureInfo.CurrentCulture);

            // Assert
            Assert.Equal($"9{s}77 KiB", result);
        }
	}
}

Fix ReturnsDefaultRepresenationCurrentCulture test for all cultures
Fix ReturnsDefaultRepresenationCurrentCulture test for all cultures

Use NumberDecimalSeparator instead of CurrencyDecimalSeparator. In some cultures it may be different. For example, in the fr-CH culture, the currency separator is a dot and the number separator is a comma.