示例#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));
        }