Ejemplo n.º 1
0
 public void GameObjectTests_PropertyExceptionRowPos()
 {
     GameObject objectOne = new GameObject(1, -1, 3);
 }
Ejemplo n.º 2
0
        public void GameObjectTests_ToStringTwo()
        {
            GameObject objectOne = new GameObject(1, 5, 3);

            Assert.AreEqual("1", objectOne.ToString(), "Problem with the ToString()");
        }
Ejemplo n.º 3
0
 public void GameObjectTests_PropertyExceptionNumValue()
 {
     GameObject objectOne = new GameObject(-1, 1, 3);
 }
Ejemplo n.º 4
0
 public void GameObjectTests_PropertyExceptionColPos()
 {
     GameObject objectOne = new GameObject(1, 1, -3);
 }
Ejemplo n.º 5
0
        public void GameObjectTests_GetRowPos()
        {
            GameObject firstObject = new GameObject(3, 2, 3);

            Assert.AreEqual(2, firstObject.RowPosition, "Problem with the getter of row position");
        }
Ejemplo n.º 6
0
        public void GameObjectTests_GetColPos()
        {
            GameObject firstObject = new GameObject(3, 2, 4);

            Assert.AreEqual(4, firstObject.ColPosition, "Problem with the getter of column position");
        }
Ejemplo n.º 7
0
 public void GameObjectTests_Construtor()
 {
     GameObject firstObject = new GameObject(3, 5, 3);
     GameObject secondObject = new GameObject(3, 5, 3);
     Assert.AreEqual(firstObject.ToString(), secondObject.ToString(), "Problem with the constructor");
 }