diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-05-19 15:06:40 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-05-19 15:06:40 +0300 |
| commit | 43e65fb3c92df024ee4eaff454b1fe340c07c41f (patch) | |
| tree | 173ac9708d62d691499f9e633b1beb22f0cca155 /MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs | |
| parent | d580ea82d48831e3cf243e5b250bf7076c8a6b1b (diff) | |
| download | Mundus-43e65fb3c92df024ee4eaff454b1fe340c07c41f.tar Mundus-43e65fb3c92df024ee4eaff454b1fe340c07c41f.tar.gz Mundus-43e65fb3c92df024ee4eaff454b1fe340c07c41f.zip | |
Fixed MITests and did all Service/SuperLayers tests (for HeightController and ImageController)
Diffstat (limited to 'MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs')
| -rw-r--r-- | MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs b/MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs index 0612454..70a2d02 100644 --- a/MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs +++ b/MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs @@ -6,12 +6,15 @@ [TestFixture] public static class HeightControllerTests
- { + {
+ [OneTimeSetUp]
+ public static void SetUp() { + DataBaseContexts.CreateInstances();
+ } + [Test] - public static void GetsCorrectSuperLayerUnderneath()
+ public static void GetsCorrectSuperLayerUnderneath()
{
- DataBaseContexts.CreateInstances();
-
Assert.AreEqual(DataBaseContexts.LContext, HeightController.GetSuperLayerUnderneath(DataBaseContexts.SContext), "GetSuperLayerUnderneath doesn't return that land is below sky");
Assert.AreEqual(DataBaseContexts.UContext, HeightController.GetSuperLayerUnderneath(DataBaseContexts.LContext), "GetSuperLayerUnderneath doesn't return that underground is below land");
Assert.AreEqual(null, HeightController.GetSuperLayerUnderneath(DataBaseContexts.UContext), "GetSuperLayerUnderneath doesn't return that there is nothing (null) below underground");
@@ -20,8 +23,6 @@ [Test]
public static void GetsCorrectSuperLayerAbove()
{ - DataBaseContexts.CreateInstances();
-
Assert.AreEqual(null, HeightController.GetSuperLayerAbove(DataBaseContexts.SContext), "GetSuperLayerUnderneath doesn't return that there is nothing (null) above sky");
Assert.AreEqual(DataBaseContexts.SContext, HeightController.GetSuperLayerAbove(DataBaseContexts.LContext), "GetSuperLayerUnderneath doesn't return that sky is above land");
Assert.AreEqual(DataBaseContexts.LContext, HeightController.GetSuperLayerAbove(DataBaseContexts.UContext), "GetSuperLayerUnderneath doesn't return that land is above underground"); |
