public void Digits13_Test() { var bf = new BigDecimal("65.1"); List <int> actual = BigDecimal.BigDecimalToIntList(bf, 1, 3); List <int> expected = new List <int> { 0, 0, 1, 5, 6 }; CompareLists(expected, actual); }
public void Zero_Test() { var bf = new BigDecimal("0"); List <int> actual = BigDecimal.BigDecimalToIntList(bf, 0, 0); List <int> expected = new List <int> { 0 }; CompareLists(expected, actual); }
public void Digit23_Test() { var bf = new BigDecimal("5"); List <int> actual = BigDecimal.BigDecimalToIntList(bf, 2, 3); List <int> expected = new List <int> { 0, 0, 0, 5, 0 }; CompareLists(expected, actual); }
public void NullTest() { List <int> actual = BigDecimal.BigDecimalToIntList(null, 0, 0); Assert.IsNull(actual); }