Exemple #1
0
        public void IsPolygon_ValidSides_ReturnsTrue(IList <int> sides)
        {
            var polygonService = new PolygonService();

            var result = polygonService.IsPolygon(sides);

            Assert.True(result);
        }
Exemple #2
0
        public void IsPolygon_OneOrMoreNonPositiveSides_ReturnsFalse(IList <int> sides)
        {
            var polygonService = new PolygonService();

            var result = polygonService.IsPolygon(sides);

            Assert.False(result);
        }
Exemple #3
0
        public void IsPolygon_PositiveButInvalidSides_ReturnsFalse(IList <int> sides)
        {
            var polygonService = new PolygonService();

            var result = polygonService.IsPolygon(sides);

            Assert.False(result);
        }
Exemple #4
0
        public void IsPolygon_LessThanThreeSides_ReturnsFalse(IList <int> sides)
        {
            var polygonService = new PolygonService();

            var result = polygonService.IsPolygon(sides);

            Assert.False(result);
        }