예제 #1
0
        public void ItShouldConvertFromPoundsToDollarsCorrectly()
        {
            decimal amountInPounds = 1m;
            decimal expectedAmountInDollars =  1.25m;

            Converter converter = new Converter();
            decimal result = converter.Convert("GBP", "USD", amountInPounds);

            Assert.AreEqual(expectedAmountInDollars, result);
        }
예제 #2
0
 public void AnExceptionShouldBeThrownIfAnUnknownCurrencyTypeIsPassedIn()
 {
     Converter converter = new Converter();
     converter.Convert("USD", "DDD", 100);
 }