public void ShouldGetFruitsPriceByAmount() { var fruit = new BaseFruit(2.5, 12, "someFruit", "black", 10); var actualPriceByWeight = fruit.GetFruitsPriceByAmount(); Assert.AreEqual(actualPriceByWeight, 120); }
public void GetFruitsPriceByAmount_AmountAndPrice() { double expected = 500; double actual; BaseFruit baseFruitAmount = new BaseFruit(4.5, 100, "carrot", "orange", 5); actual = baseFruitAmount.GetFruitsPriceByAmount(); NUnit.Framework.Assert.AreEqual(expected, actual, $"Expected result is {0}, but actual result was {1}"); }