public void IsRecipesControllerPutRecipesWithoutOldNewImage() { //Arrange RecipeModel recipeAPIModel = new RecipeModel { RecipeId = "1", Name = "KanapkaEDIT", Ingredients = new List <string> { "Chleb", "Masło" }, Instruction = "Posmaruj chleb masłem. Smacznego!", }; //Usun plik na potrzeby symulacji nie posiadania starego pliku if (File.Exists(Directory.GetCurrentDirectory() + @"\deleteMe.jpeg")) { File.Delete(Directory.GetCurrentDirectory() + @"\deleteMe.jpeg"); } //Act var result = _recipesController.PutRecipes(1, recipeAPIModel); //Assert Assert.Equal("Microsoft.AspNetCore.Mvc.OkResult", result.Result.ToString()); }