aboutsummaryrefslogtreecommitdiff
path: root/MundusTests/DataTests/SuperLayers/LandContextTests.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-05-19 12:28:54 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-05-19 12:28:54 +0300
commit65c474e881e880a71710aaf560f9afddecdb3e38 (patch)
tree23623407a5dc243b1828e7e41a4261c9d9283d37 /MundusTests/DataTests/SuperLayers/LandContextTests.cs
parent02ec6e54e1d0ec36043aa1abe0cb372b47b2a7a6 (diff)
downloadMundus-65c474e881e880a71710aaf560f9afddecdb3e38.tar
Mundus-65c474e881e880a71710aaf560f9afddecdb3e38.tar.gz
Mundus-65c474e881e880a71710aaf560f9afddecdb3e38.zip
Finished with all Data layer tests
Diffstat (limited to 'MundusTests/DataTests/SuperLayers/LandContextTests.cs')
-rw-r--r--MundusTests/DataTests/SuperLayers/LandContextTests.cs39
1 files changed, 24 insertions, 15 deletions
diff --git a/MundusTests/DataTests/SuperLayers/LandContextTests.cs b/MundusTests/DataTests/SuperLayers/LandContextTests.cs
index f083841..2329de8 100644
--- a/MundusTests/DataTests/SuperLayers/LandContextTests.cs
+++ b/MundusTests/DataTests/SuperLayers/LandContextTests.cs
@@ -1,14 +1,16 @@
-using System;
-using System.Linq;
-using Mundus.Data.SuperLayers;
-using Mundus.Data.SuperLayers.DBTables;
-using NUnit.Framework;
+namespace MundusTests.DataTests.SuperLayers
+{
+ using System.Linq;
+ using Mundus.Data.SuperLayers;
+ using Mundus.Data.SuperLayers.DBTables;
+ using NUnit.Framework;
-namespace MundusTests.DataTests.SuperLayers {
[TestFixture]
- public static class LandContextTests {
+ public static class LandContextTests
+ {
[Test]
- public static void AddsCorrectValues() {
+ public static void AddsCorrectValues()
+ {
var mob = new LMPlacedTile("mob_stock", 0, 1, 1);
var structure = new LSPlacedTile("structure_stock", 0, 2, 1);
var ground = new LGPlacedTile("ground_stock", 3, 4);
@@ -26,7 +28,8 @@ namespace MundusTests.DataTests.SuperLayers {
}
[Test]
- public static void ConsideredAliveAfterSmallDamage() {
+ public static void ConsideredAliveAfterSmallDamage()
+ {
var mob = new LMPlacedTile("mob_stock", 10, 1, 1);
var structure = new LSPlacedTile("structure_stock", 4, 2, 1);
@@ -41,7 +44,8 @@ namespace MundusTests.DataTests.SuperLayers {
}
[Test]
- public static void ConsideredDeadAfterBigDamage() {
+ public static void ConsideredDeadAfterBigDamage()
+ {
var mob = new LMPlacedTile("mob_stock", 10, 1, 1);
var structure = new LSPlacedTile("structure_stock", 4, 2, 1);
@@ -56,7 +60,8 @@ namespace MundusTests.DataTests.SuperLayers {
}
[Test]
- public static void DamagesCorrectly() {
+ public static void DamagesCorrectly()
+ {
var mob = new LMPlacedTile("mob_stock", 10, 1, 1);
var structure = new LSPlacedTile("structure_stock", 4, 2, 1);
@@ -74,7 +79,8 @@ namespace MundusTests.DataTests.SuperLayers {
}
[Test]
- public static void GetsCorrectStocks() {
+ public static void GetsCorrectStocks()
+ {
var mob = new LMPlacedTile("mob_stock", 0, 1, 1);
var structure = new LSPlacedTile("structure_stock", 0, 2, 1);
var ground = new LGPlacedTile("ground_stock", 3, 4);
@@ -92,7 +98,8 @@ namespace MundusTests.DataTests.SuperLayers {
}
[Test]
- public static void RemovesCorrectValues() {
+ public static void RemovesCorrectValues()
+ {
var mob = new LMPlacedTile("mob_stock", 0, 1, 1);
var structure = new LSPlacedTile("structure_stock", 0, 2, 1);
var ground = new LGPlacedTile("ground_stock", 3, 4);
@@ -116,7 +123,8 @@ namespace MundusTests.DataTests.SuperLayers {
[Test]
- public static void SetsCorrectValues() {
+ public static void SetsCorrectValues()
+ {
var mob = new LMPlacedTile("mob_stock", 0, 1, 1);
var newMob = new LMPlacedTile("new_mob_stock", 1, 1, 1);
var structure = new LSPlacedTile("structure_stock", 0, 2, 1);
@@ -142,7 +150,8 @@ namespace MundusTests.DataTests.SuperLayers {
}
[Test]
- public static void TruncatesTablesOnInitialization() {
+ public static void TruncatesTablesOnInitialization()
+ {
LandContext lc = new LandContext();
Assert.AreEqual(0, lc.LMobLayer.Count(), "LMobLayer table isn't properly truncated upon LandContext initialization");