aboutsummaryrefslogtreecommitdiff
path: root/MundusTests/ServiceTests/Tiles/Crafting/CraftingControllerTests.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-05-22 12:59:32 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-05-22 12:59:32 +0300
commit747aa00440eb9b219d989a536b0ff0c959b35143 (patch)
treef8b866f8e95c4597cae6b246746c23967e03def6 /MundusTests/ServiceTests/Tiles/Crafting/CraftingControllerTests.cs
parenta4e2f6753c6c2612444847fd12f1e973a86a4aa4 (diff)
downloadMundus-747aa00440eb9b219d989a536b0ff0c959b35143.tar
Mundus-747aa00440eb9b219d989a536b0ff0c959b35143.tar.gz
Mundus-747aa00440eb9b219d989a536b0ff0c959b35143.zip
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).
Diffstat (limited to 'MundusTests/ServiceTests/Tiles/Crafting/CraftingControllerTests.cs')
-rw-r--r--MundusTests/ServiceTests/Tiles/Crafting/CraftingControllerTests.cs5
1 files changed, 2 insertions, 3 deletions
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");