public void GetDecimal_Returns_Valid_Negatives() { Assert.Equal(-21.90m, ZonedDecimalConverter.GetDecimal("0219}", 2)); Assert.Equal(-21.91m, ZonedDecimalConverter.GetDecimal("0219J", 2)); Assert.Equal(-21.92m, ZonedDecimalConverter.GetDecimal("0219K", 2)); Assert.Equal(-21.93m, ZonedDecimalConverter.GetDecimal("0219L", 2)); Assert.Equal(-21.94m, ZonedDecimalConverter.GetDecimal("0219M", 2)); Assert.Equal(-21.95m, ZonedDecimalConverter.GetDecimal("0219N", 2)); Assert.Equal(-21.96m, ZonedDecimalConverter.GetDecimal("0219O", 2)); Assert.Equal(-21.97m, ZonedDecimalConverter.GetDecimal("0219P", 2)); Assert.Equal(-21.98m, ZonedDecimalConverter.GetDecimal("0219Q", 2)); Assert.Equal(-21.99m, ZonedDecimalConverter.GetDecimal("0219R", 2)); }
public void GetDecimal_Returns_Valid_Positives() { Assert.Equal(21.90m, ZonedDecimalConverter.GetDecimal("0219{", 2)); Assert.Equal(21.91m, ZonedDecimalConverter.GetDecimal("0219A", 2)); Assert.Equal(21.92m, ZonedDecimalConverter.GetDecimal("0219B", 2)); Assert.Equal(21.93m, ZonedDecimalConverter.GetDecimal("0219C", 2)); Assert.Equal(21.94m, ZonedDecimalConverter.GetDecimal("0219D", 2)); Assert.Equal(21.95m, ZonedDecimalConverter.GetDecimal("0219E", 2)); Assert.Equal(21.96m, ZonedDecimalConverter.GetDecimal("0219F", 2)); Assert.Equal(21.97m, ZonedDecimalConverter.GetDecimal("0219G", 2)); Assert.Equal(21.98m, ZonedDecimalConverter.GetDecimal("0219H", 2)); Assert.Equal(21.99m, ZonedDecimalConverter.GetDecimal("0219I", 2)); }