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