Esempio n. 1
0
        public void GSetPointInMap_Points_PointFromMap(int y, int x, int ourValue)
        {
            MyMap map = new MyMap();

            map.SetPointInMap(y, x, ourValue);

            Assert.That(ourValue, Is.EqualTo(map.GetPointInMap(y, x)));
        }
Esempio n. 2
0
        public void SetPointInMap_Points_PointFromMap(int y, int x, int ourValue)
        {
            MyMap map = new MyMap();

            ConsoleLib.Coord newCoord = new ConsoleLib.Coord(0, 10);

            map.SetPointInMap(newCoord, ourValue);

            Assert.That(ourValue, Is.EqualTo(map.GetPointInMap(newCoord.y, newCoord.x)));
        }
Esempio n. 3
0
        public int GetPointInMap_Points_PointFromMap(int y, int x)
        {
            MyMap map = new MyMap();

            return(map.GetPointInMap(y, x));
        }