From 747aa00440eb9b219d989a536b0ff0c959b35143 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 22 May 2020 12:59:32 +0300 Subject: Completed all tests (there is still some code that can be tested, but it will be very hard to do so and I am skipping it for now). --- MundusTests/ServiceTests/Tiles/Crafting/CraftingControllerTests.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'MundusTests/ServiceTests/Tiles/Crafting/CraftingControllerTests.cs') diff --git a/MundusTests/ServiceTests/Tiles/Crafting/CraftingControllerTests.cs b/MundusTests/ServiceTests/Tiles/Crafting/CraftingControllerTests.cs index e0cd66d..5961c72 100644 --- a/MundusTests/ServiceTests/Tiles/Crafting/CraftingControllerTests.cs +++ b/MundusTests/ServiceTests/Tiles/Crafting/CraftingControllerTests.cs @@ -1,11 +1,9 @@ namespace MundusTests.ServiceTests.Tiles.Crafting { using System.Linq; - using Gtk; using Mundus.Data; using Mundus.Data.Tiles.Mobs; using Mundus.Data.Tiles.Presets; - using Mundus.Data.Windows; using Mundus.Service.Tiles.Crafting; using NUnit.Framework; @@ -17,10 +15,11 @@ { var recipe = DataBaseContexts.CTContext.CraftingRecipes.First(x => x.ResultItem == "wooden_shovel"); - for(int i = 0; i < recipe.Count1; i++) + for (int i = 0; i < recipe.Count1; i++) { MI.Player.Inventory.AppendToItems(MaterialPresets.GetALandStick()); } + CraftingController.CraftItemPlayer(recipe); Assert.Contains(recipe.ResultItem, MI.Player.Inventory.Items.Where(x => x != null).Select(x => x.stock_id).ToArray(), "Result item isn't added to player's inventory"); -- cgit v1.2.3