1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
namespace MundusTests.DataTests.SuperLayers.DBTables
{
using Mundus.Data.SuperLayers.DBTables;
using NUnit.Framework;
[TestFixture]
public static class SGPlacedTileTests
{
[Test]
[TestCase(null, 0, 0)]
[TestCase("test", 50, 23)]
public static void ConstructorWorksProperly(string stock_id, int yPos, int xPos)
{
SGPlacedTile pt = new SGPlacedTile(stock_id, 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");
}
}
}
|