示例#1
0
        public void ConsttuctorWith1CoordsAndGetCoords()
        {
            var rectPlateau = new RectPlateau(new Coord(2, 2));

            rectPlateau.Coords.Should().HaveCount(2);
            var coords = rectPlateau.Coords.ToArray();

            coords[0].Should().Be(new Coord(0, 0));
            coords[1].Should().Be(new Coord(2, 2));
        }
示例#2
0
        public void IsInside(int x, int y, bool result)
        {
            var rectPlateau = new RectPlateau(new Coord(2, 2));

            rectPlateau.IsInside(new Coord(x, y)).Should().Be(result);
        }