Beispiel #1
0
        public void GetCost_SmallPizza_ReturnsBasePrice()
        {
            var pizza  = new SmallPizza();
            var result = pizza.GetCost();

            Assert.Equal(6.00, result);
        }
Beispiel #2
0
        public void ReturnCost_WhenGetCostIsCalled()
        {
            var expectedCost = 5.0;
            var smallPizza   = new SmallPizza();

            var actualCost = smallPizza.GetCost();

            actualCost.Should().Be(expectedCost);
        }