Exemplo n.º 1
0
        public void Negative_Product_Variety_Price_Entry_Throws_An_Exception(decimal priceInGbp)
        {
            var productVarietyPriceChecker = new ProductVarietyPriceChecker();

            Assert.That
                (() => productVarietyPriceChecker.ProductVarietyPriceInEuro(priceInGbp),
                Throws.TypeOf <ArgumentOutOfRangeException>());
        }
Exemplo n.º 2
0
        public void Product_Variety_Price_In_Euro_Is_Correct(decimal priceInGbp, decimal expectedPriceInEuro)
        {
            var productVarietyPriceChecker = new ProductVarietyPriceChecker();

            var actualPriceInEuro = productVarietyPriceChecker.ProductVarietyPriceInEuro(priceInGbp);

            NUnit.Framework.Assert.AreEqual(expectedPriceInEuro, actualPriceInEuro);
        }