public void ShouldGetFruitsTaxedPriceByAmount() { var fruit = new BaseFruit(2.5, 12, "someFruit", "black", 10); var actualTaxedPrice = fruit.GetFruitsTaxedPriceByAmount(3.5); Assert.AreEqual(42, actualTaxedPrice); Assert.That(actualTaxedPrice, Is.EqualTo(42)); }
public void GetFruitsTaxedPriceByAmount_PriceWithTaxAndAmount() { double expected = 550; double actual; BaseFruit baseFruitAmount = new BaseFruit(4.5, 100, "carrot", "orange", 5); actual = baseFruitAmount.GetFruitsTaxedPriceByAmount(5.5); NUnit.Framework.Assert.AreEqual(expected, actual, $"Expected result is {0}, but actual result was {1}"); }