예제 #1
0
        public void DoesSUTThrowsExceptionWhenEdittedRecipeIsNull()
        {
            //Arrange
            var expectedExceptionType = new InvalidRecipeException().GetType();

            //Assert
            Assert.Throws(expectedExceptionType, () => _recipeService.Edit(It.IsAny <int>(), null));
        }
예제 #2
0
        public void DoesSUTThrowsExceptionWhenAddedRecipeIsNull()
        {
            //Arrange
            var expectedExceptionType = new InvalidRecipeException().GetType();

            //Assert
            Assert.Throws(expectedExceptionType, () => _recipeService.Add(null));
        }