예제 #1
0
        public void Test_ReviewEmptyFirst()
        {
            // Arrange
            int result = Review.GetAll().Count;

            // Act
            // Assert
            Assert.Equal(0, result);
        }
예제 #2
0
        public void Test_Review_Save_CheckIfSavedReview()
        {
            // Arrange
            Review firstReview = new Review("Their pizza was marvelous", 4, 0);

            firstReview.Save();

            // Act
            Review result = Review.GetAll()[0];

            // Assert
            Assert.Equal(firstReview, result);
        }