diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-05-19 13:29:09 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-05-19 13:29:09 +0300 |
| commit | d580ea82d48831e3cf243e5b250bf7076c8a6b1b (patch) | |
| tree | defb059237edd0b65bf513ac696d90a13e28581f /MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs | |
| parent | 65c474e881e880a71710aaf560f9afddecdb3e38 (diff) | |
| download | Mundus-d580ea82d48831e3cf243e5b250bf7076c8a6b1b.tar Mundus-d580ea82d48831e3cf243e5b250bf7076c8a6b1b.tar.gz Mundus-d580ea82d48831e3cf243e5b250bf7076c8a6b1b.zip | |
Added final data test (that I didn't think I could do)
Diffstat (limited to 'MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs')
| -rw-r--r-- | MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs b/MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs new file mode 100644 index 0000000..0612454 --- /dev/null +++ b/MundusTests/ServiceTests/SuperLayers/HeightControllerTests.cs @@ -0,0 +1,30 @@ +namespace MundusTests.ServiceTests.SuperLayers
+{
+ using Mundus.Data; + using Mundus.Service.SuperLayers; + using NUnit.Framework;
+ + [TestFixture] + public static class HeightControllerTests
+ { + [Test] + 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");
+ }
+
+ [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"); + } + } +} |
