コード例 #1
0
        public void ShouldSunDriedTomatoCalculateCostAs32Percent()
        {
            //Arrange
            ITopping subject = Topping.SunDriedTomato;

            //Act
            Money actual = subject.Cost(new Money(1));

            //Assert
            actual.Should().Be(new Money(0.32));
        }
コード例 #2
0
        public void ShouldFetaCheeseCalculateCostAs32Percent()
        {
            //Arrange
            ITopping subject = Topping.FetaCheese;

            //Act
            Money actual = subject.Cost(new Money(1));

            //Assert
            actual.Should().Be(new Money(0.32));
        }
コード例 #3
0
        public void ShouldRoastedGarlicCalculateCostAs32Percent()
        {
            //Arrange
            ITopping subject = Topping.RoastedGarlic;

            //Act
            Money actual = subject.Cost(new Money(1));

            //Assert
            actual.Should().Be(new Money(0.32));
        }