示例#1
0
        public void AreaPropertyCircleTest(double radius, double expectedArea)
        {
            //Arrange
            BaseCircleShape filmCircle = new BaseCircleShape(radius);
            //Act
            var actualArea = filmCircle.Area;

            //Assert
            Assert.AreEqual(expectedArea, actualArea);
        }
示例#2
0
        public void PerimetrPropertyCircleTest(double radius, double expectedPerimeter)
        {
            //Arrange
            BaseCircleShape circle = new BaseCircleShape(radius);
            //Act
            var actualPerimetera = circle.Perimeter;

            //Assert
            Assert.AreEqual(expectedPerimeter, actualPerimetera);
        }
示例#3
0
        public void EqualsCircleMethodTest(double radius, bool expected)
        {
            //Arrange
            BaseCircleShape actualCircle   = new BaseCircleShape(radius);
            BaseCircleShape expectedCircle = new BaseCircleShape(radius);
            //Act
            var actual = actualCircle.Equals(expectedCircle);

            //Assert
            Assert.AreEqual(expected, actual);
        }
示例#4
0
 /// <summary>
 /// Constructor to cut shape from another.
 /// </summary>
 /// <param name="currentShape">Shape's blank.</param>
 /// <param name="cuttingShape">Shape which Cut out.</param>
 public FilmCircle(BaseCircleShape currentShape, BaseCircleShape cuttingShape) : base(currentShape, cuttingShape)
 {
 }