def test_dollarsToYuan_forPositiveAmount(self): result = MoneyExchange.dollarsToYuan(10) self.assertEqual(68.5, result)
def test_dollarsToYuan_forNegativeAmount(self): result = MoneyExchange.dollarsToYuan(-10) self.assertEqual(0, result)
def test_yuanToDollars_forNegativeAmount(self): result = MoneyExchange.yuanToDollars(-10) self.assertEqual(0, result)
def test_yuanToDollars_forPositiveAmount(self): result = MoneyExchange.yuanToDollars(10) self.assertEqual(1.5, result)
def test_dollarsToYen_forPositiveAmount(self): result = MoneyExchange.dollarsToYen(10) self.assertEqual(1180.6, result)
def test_dollarsToEuros_forPositiveAmount(self): result = MoneyExchange.dollarsToEuros(10) self.assertEqual(9.0, result)
def test_eurosToDollars_forPositiveAmount(self): result = MoneyExchange.eurosToDollars(10) self.assertEqual(11.100000000000001, result)