예제 #1
0
        public void ThenUserCalculateDataFromMultipleProducts()
        {
            double yourPricesSum = basketP.GetYourPricesSumCheckCurrency();

            Assert.AreEqual("£" + /*Math.Round(yourPricesSum, 2)*/ yourPricesSum.ToString("N2").Replace(",", ""), basketP.GetTotalPriceValue());
            string diff = /*Math.Round*/ (basketP.GetTotalPricesSumCheckCurrency() - yourPricesSum).ToString("N2").Replace(",", "");//.ToString("N2").Replace(",", "");

            Assert.AreEqual("£" + diff, basketP.GetTotalSaving());
        }