public void FormatTeraBytes()
        {
            var result = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.TERA));

            Assert.That(result == "1 TB");
            var result2 = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.TERA * 1.25));

            Assert.That(result2 == "1.25 TB");
            var result3 = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.TERA * 1.25) * 10);

            Assert.That(result3 == "12.5 TB");
            var result4 = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.TERA * 1.25) * 100);

            Assert.That(result4 == "125 TB");
        }
        public void FormatKiloBytes()
        {
            var result = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.KILO));

            Assert.That(result == "1 KB");
            var result2 = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.KILO * 1.5));

            Assert.That(result2 == "1.5 KB");
            var result3 = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.KILO * 1.25));

            Assert.That(result3 == "1.25 KB");
            var result4 = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.KILO * 1.25 + 1));

            Assert.That(result4 == "1.25 KB");
        }
        public void FormatGigaBytes()
        {
            var result = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.GIGA));

            Assert.That(result == "1 GB");
            var result2 = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.GIGA * 1.25));

            Assert.That(result2 == "1.25 GB");
            var result3 = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.GIGA * 1.25) * 10);

            Assert.That(result3 == "12.5 GB");
            var result4 = NumberFormaters.ConvertBytesToString(Convert.ToInt64(NumberFormaters.GIGA * 1.25) * 100);

            Assert.That(result4 == "125 GB");
        }
 public void FormatBytes()
 {
     Assert.That(NumberFormaters.ConvertBytesToString(1023) == "1,023 B");
 }