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/ApplicationSetup.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 MundusTests/ApplicationSetup.cs (limited to 'MundusTests/ApplicationSetup.cs') diff --git a/MundusTests/ApplicationSetup.cs b/MundusTests/ApplicationSetup.cs new file mode 100644 index 0000000..bd39d97 --- /dev/null +++ b/MundusTests/ApplicationSetup.cs @@ -0,0 +1,20 @@ +using Mundus.Data; +using Mundus.Data.Windows; +using NUnit.Framework; +using Gtk; + +[SetUpFixture] +public static class ApplicationSetup { + [OneTimeSetUp] + public static void SetUp() { + Application.Init(); + WI.CreateInstances(); + DataBaseContexts.CreateInstances(); + WI.WNewGame.OnBtnGenerateClicked(null, null); + } + + [OneTimeTearDown] + public static void TearDown() { + Application.Quit(); + } +} -- cgit v1.2.3