From a4e2f6753c6c2612444847fd12f1e973a86a4aa4 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 20 May 2020 13:12:31 +0300 Subject: Fixed test SetUps and TearDowns. Did tests for Inventory and MobTile (Service/Mobs). Did some minor changes to the program. --- MundusTests/DataTests/Mobs/MITests.cs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'MundusTests/DataTests/Mobs/MITests.cs') diff --git a/MundusTests/DataTests/Mobs/MITests.cs b/MundusTests/DataTests/Mobs/MITests.cs index b0e33a6..e37212b 100644 --- a/MundusTests/DataTests/Mobs/MITests.cs +++ b/MundusTests/DataTests/Mobs/MITests.cs @@ -9,24 +9,11 @@ [TestFixture] public static class MITests { - [OneTimeSetUp] - public static void SetUp() - { - Application.Init(); - DataBaseContexts.CreateInstances(); - WI.CreateInstances(); - WI.WNewGame.OnBtnGenerateClicked(null, null); - } - - [OneTimeTearDown] - public static void TearDown() { - Application.Quit(); - } [Test] public static void CreatesPlayerInstance() { - Assert.AreNotEqual(null, MI.Player, "Player isn't instantiated"); + Assert.IsNotNull(MI.Player, "Player isn't instantiated"); } } } -- cgit v1.2.3