aboutsummaryrefslogtreecommitdiff
path: root/MundusTests/DataTests/SuperLayers/DBTables/SMPlacedTileTests.cs
blob: 255b34806701dd8c129ba638d4158aa0042beefd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace MundusTests.DataTests.SuperLayers.DBTables 
{
    using Mundus.Data.SuperLayers.DBTables;
    using NUnit.Framework;

    [TestFixture]
    public static class SMPlacedTileTests 
    {
        [Test]
        [TestCase(null, -1, 0, 0)]
        [TestCase("test", 10, 50, 23)]
        public static void ConstructorWorksProperly(string stock_id, int health, int yPos, int xPos) 
        {
            SMPlacedTile pt = new SMPlacedTile(stock_id, health, yPos, xPos);

            Assert.AreEqual(stock_id, pt.stock_id, "stock_id isn't set properly");
            Assert.AreEqual(yPos, pt.YPos, "YPos isn't set properly");
            Assert.AreEqual(xPos, pt.XPos, "XPos isn't set properly");
            Assert.AreEqual(health, pt.Health, "XPos isn't set properly");
        }
    }
}