public void DecimalFormatNumberTest() { var k = new KanjiNumber(); var str = k.DecimalFormatNumber(1234000005678910, 2); Console.WriteLine(str); Assert.IsTrue(str == "1234.00兆"); }
public void DecimalFormatNumberExTest() { TestContext.Run((ulong n, int len) => { var k = new KanjiNumber(); var ex = AssertEx.Throws <ArgumentOutOfRangeException>(() => { var str = k.DecimalFormatNumber(n, len); Console.WriteLine(str); }); Console.WriteLine(ex.Message); }); }