예제 #1
0
        public void ByteConversionToStringTest(ulong bytes, string expected)
        {
            // Set the thread culture so the current system culture don't interfere with the results
            Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-us");
            var converted = new ByteConversion(bytes);

            Assert.Equal(expected, converted.ToString());
        }