public void Test_amount_to_hr() { Assert.True(50123456789 == ModHelper.Amount_from_hr_string("50.123456789")); Assert.True(50 == ModHelper.Amount_from_hr_string(".000000050")); Assert.True(1 == ModHelper.Amount_from_hr_string(".000000001")); Assert.True(0 == ModHelper.Amount_from_hr_string(".0000000009")); Assert.True(500_000_000_000 == ModHelper.Amount_from_hr_string("500")); Assert.True(5_000_000_000_000_000_000 == ModHelper.Amount_from_hr_string("5000000000.00000000000")); }