Пример #1
0
            public void size_x_of_east_wall_is_not_changed()
            {
                var expected = initialColliderSize.With(y: 1);
                var actual   = Wall.CalculateSize(topRight, bottomLeft, initialColliderSize, WallsManager.Side.East);

                Assert.AreEqual(expected.x, actual.x);
            }
Пример #2
0
            public void size_y_of_north_wall_is_not_changed()
            {
                var expected = initialColliderSize.With(x: 1);
                var actual   = Wall.CalculateSize(topRight, bottomLeft, initialColliderSize, WallsManager.Side.North);

                Assert.AreEqual(expected.y, actual.y);
            }
Пример #3
0
            public void size_y_of_east_wall_is_same_as_viewport_y()
            {
                var expected = initialColliderSize.With(y: 1);
                var actual   = Wall.CalculateSize(topRight, bottomLeft, initialColliderSize, WallsManager.Side.East);

                Assert.AreEqual(expected.y, actual.y);
            }
Пример #4
0
            public void size_x_of_north_wall_is_same_as_viewport_x()
            {
                var expected = initialColliderSize.With(x: 1);
                var actual   = Wall.CalculateSize(topRight, bottomLeft, initialColliderSize, WallsManager.Side.North);

                Assert.AreEqual(expected.x, actual.x);
            }