public void TestDouble() { double input = 1; ByteToStringConverter converter = new ByteToStringConverter(); string result = (string)converter.Convert(input, typeof(double), null, null); Assert.AreEqual("1 KB", result); }
public void TestLargeInt() { int input = 100000000; ByteToStringConverter converter = new ByteToStringConverter(); string result = (string)converter.Convert(input, typeof(double), null, null); Assert.AreEqual("95.37 MB", result); }