コード例 #1
0
        public void ReturnDescription_WhenGetDescriptionIsCalled()
        {
            var expectedDescription = "Medium Pizza";
            var mediumPizza         = new MediumPizza();

            var actualDescription = mediumPizza.GetDescription();

            actualDescription.Should().Be(expectedDescription);
        }
コード例 #2
0
        public void GetDescription_Returns_MediumPizza()
        {
            //Arrange
            var mediumPizza = new MediumPizza();

            //Act
            var description = mediumPizza.GetDescription();

            //Assert
            Assert.AreEqual("Medium Pizza", description);
        }