Esempio n. 1
0
        public void ThenISeeCorrectConvertedAmount(string convertedCurrency, string amount)
        {
            decimal actualAmount   = _ConverterPage.GetCurrencyExchange(convertedCurrency);
            decimal exchangeRate   = _ConverterPage.GetCurrencyRate(convertedCurrency);
            decimal expectedAmount = Decimal.Multiply(Decimal.Parse(amount), exchangeRate);

            Assert.AreEqual(expectedAmount, actualAmount, "expected and actual amounts are not equal");
        }